[parisc-linux] register_fallback_cpu()
5116@telia.com
5116@telia.com
Thu, 1 Feb 2001 23:15:57 +0100 (CET)
---1463811727-1804289383-981065757=:6612
Content-Type: TEXT/plain; CHARSET=US-ASCII
On 31 Jan, Grant Grundler wrote:
.... And the patch...
/Daniel
--
---1463811727-1804289383-981065757=:6612
Content-Type: TEXT/plain; CHARSET=US-ASCII
Content-Disposition: attachment ; filename="boot-fail.diff"
Index: arch/parisc/kernel/drivers.c
===================================================================
RCS file: /home/cvs/parisc/linux/arch/parisc/kernel/drivers.c,v
retrieving revision 1.10
diff -r1.10 drivers.c
54,76c54,81
<
< /* link driver to the head of the global list.
< ** The list gets built in reverse order...ideally, it shouldn't
< ** matter but reality will eventually rear it's ugly head.
< */
< driver->next = pa_drivers;
< pa_drivers = driver;
<
< for (i=0; i < num_devices; i++) {
< device = &pa_devices[i];
<
< if (device->managed) continue;
< if (0 == compare_spec(device, driver)) continue;
<
< if ( (*driver->callback)(device,driver) ==0) {
< device->managed=1;
< } else {
< printk("Warning : device (%d, 0x%x, 0x%x, 0x%x, 0x%x) NOT claimed by %s %s\n",
< device->hw_type,
< device->hversion, device->hversion_rev,
< device->sversion, device->sversion_rev,
< driver->name, driver->version);
< }
---
>
> while(0!=driver->hw_type) {
>
> /* link driver to the head of the global list.
> ** The list gets built in reverse order...ideally, it shouldn't
> ** matter but reality will eventually rear it's ugly head.
> */
> driver->next = pa_drivers;
> pa_drivers = driver;
>
>
> for (i=0; i < num_devices; i++) {
> device = &pa_devices[i];
>
> if (device->managed) continue;
> if (0 == compare_spec(device, driver)) continue;
>
> if ( (*driver->callback)(device,driver) ==0) {
> device->managed=1;
> } else {
> printk("Warning : device (%d, 0x%x, 0x%x, 0x%x, 0x%x) NOT claimed by %s %s\n",
> device->hw_type,
> device->hversion, device->hversion_rev,
> device->sversion, device->sversion_rev,
> driver->name, driver->version);
> }
> }
> driver++;
---1463811727-1804289383-981065757=:6612--