nubus: Remove redundant code
Eliminate unused values from struct nubus_dev to save wasted memory (a Radius PrecisionColor 24X card has about 95 functional resources and up to six such cards may be fitted). Also remove redundant static variable initialization, an unreachable !MACH_IS_MAC conditional, the unused nubus_find_device() function, the bogus get_nubus_list() prototype and the pointless card_present temporary variable. Tested-by: Stan Johnson <userm57@yahoo.com> Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
This commit is contained in:

committed by
Geert Uytterhoeven

szülő
6c8b89ea55
commit
9f97977deb
@@ -230,8 +230,6 @@ void __init proc_bus_nubus_add_devices(void)
|
||||
void __init nubus_proc_init(void)
|
||||
{
|
||||
proc_create("nubus", 0, NULL, &nubus_proc_fops);
|
||||
if (!MACH_IS_MAC)
|
||||
return;
|
||||
proc_bus_nubus_dir = proc_mkdir("bus/nubus", NULL);
|
||||
proc_create("devices", 0, proc_bus_nubus_dir, &nubus_devices_proc_fops);
|
||||
proc_bus_nubus_add_devices();
|
||||
|
Reference in New Issue
Block a user