patch-2.3.16 linux/arch/sparc64/kernel/auxio.c
Next file: linux/arch/sparc64/kernel/binfmt_aout32.c
Previous file: linux/arch/sparc64/kernel/Makefile
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Tue Aug 31 11:23:30 1999
- Orig file:
v2.3.15/linux/arch/sparc64/kernel/auxio.c
- Orig date:
Tue Aug 4 16:03:35 1998
diff -u --recursive --new-file v2.3.15/linux/arch/sparc64/kernel/auxio.c linux/arch/sparc64/kernel/auxio.c
@@ -22,7 +22,7 @@
/* Probe and map in the Auxiliary I/O register */
unsigned char *auxio_register;
-__initfunc(void auxio_probe(void))
+void __init auxio_probe(void)
{
struct linux_sbus *bus;
struct linux_sbus_device *sdev = 0;
@@ -51,17 +51,7 @@
ebus_done:
if (edev) {
- if (check_region(edev->base_address[0],
- sizeof(unsigned int))) {
- prom_printf("%s: Can't get region %lx, %d\n",
- __FUNCTION__, edev->base_address[0],
- sizeof(unsigned int));
- prom_halt();
- }
- request_region(edev->base_address[0],
- sizeof(unsigned int), "LED auxio");
-
- led_auxio = edev->base_address[0];
+ led_auxio = edev->resource[0].start;
outl(0x01, led_auxio);
return;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)