CONFIG_SUN_AUXIO no longer needed
While looking at sparc/kernel/MAkefile I noticed that CONFIG_SUN_AUXIO was used to determine if auxio.o was included in the link or not.
But in the Kconfig we have:
config SUN_AUXIO
bool
default y
So SUN_AUXIO is always enabled and it can be killed. Following patch does this but serves as example only. If it can be killed I will take care after the merge of sparc and sparc64 has finished.
Did I miss something obvious or is it just something awaiting cleaning up?
Sam
arch/sparc/kernel/devices.c +0 -2
@@ -133,14 +133,12 @@ void __init device_scan(void)#endif /* !CONFIG_SMP */ cpu_probe (); -#ifdef CONFIG_SUN_AUXIO {extern void auxio_probe (void );extern void auxio_power_probe (void );auxio_probe ();auxio_power_probe (); } -#endif clock_stop_probe ();if (ARCH_SUN4C )
arch/sparc/kernel/process_32.c +0 -2
@@ -168,11 +168,9 @@ void machine_restart(char * cmd)void machine_power_off (void ) { -#ifdef CONFIG_SUN_AUXIO if (auxio_power_register && (strcmp (of_console_device->type,"serial" ) || scons_pwroff)) *auxio_power_register |=AUXIO_POWER_OFF ; -#endif machine_halt (); }
arch/sparc/kernel/sparc_ksyms_32.c +0 -2
@@ -122,10 +122,8 @@ EXPORT_SYMBOL(phys_cpu_present_map);EXPORT_SYMBOL (__udelay);EXPORT_SYMBOL (__ndelay);EXPORT_SYMBOL (rtc_lock); -#ifdef CONFIG_SUN_AUXIO EXPORT_SYMBOL (set_auxio);EXPORT_SYMBOL (get_auxio); -#endif EXPORT_SYMBOL (io_remap_pfn_range);#ifndef CONFIG_SMP
arch/sparc/mm/sun4c.c +0 -2
@@ -240,9 +240,7 @@ void sun4c_complete_all_stores(void) _unused =sun4c_get_context ();sun4c_set_context (_unused); -#ifdef CONFIG_SUN_AUXIO _unused =get_auxio (); -#endif }/* Bootup utility functions. */
arch/sparc/prom/misc_32.c +0 -2
@@ -61,9 +61,7 @@ prom_cmdline(void)restore_current ();install_linux_ticker ();spin_unlock_irqrestore (&prom_lock, flags); -#ifdef CONFIG_SUN_AUXIO set_auxio (AUXIO_LED ,0 ); -#endif }/* Drop into the prom, but completely terminate the program.
arch/sparc64/kernel/sparc64_ksyms.c +0 -2
@@ -148,10 +148,8 @@ EXPORT_SYMBOL(flush_dcache_page);EXPORT_SYMBOL (__flush_dcache_range);#endif -#ifdef CONFIG_SUN_AUXIO EXPORT_SYMBOL (auxio_set_led);EXPORT_SYMBOL (auxio_set_lte); -#endif #ifdef CONFIG_SBUS EXPORT_SYMBOL (sbus_set_sbus64);#endif
David Miller
maintainerFrom: Sam Ravnborg <[email protected]>
Date: Mon, 17 Nov 2008 19:34:13 +0100
Quoted 10 lines
While looking at sparc/kernel/MAkefile I noticed that
CONFIG_SUN_AUXIOwas used to determine if auxio.o was included in the link or not.But in the
Kconfigwe have:config
SUN_AUXIO
bool
default y
Quoted 7 lines
So
SUN_AUXIOis always enabled and it can be killed. Following patch does this but serves as example only. If it can be killed I will take care after the merge of sparc and sparc64 has finished.Did I miss something obvious or is it just something awaiting cleaning up?
Yes, it can die.
Quoted 18 lines · David Miller
From: Sam Ravnborg <[email protected]>
Date: Mon, 17 Nov 2008 19:34:13 +0100Quoted 15 lines
While looking at sparc/kernel/MAkefile I noticed that
CONFIG_SUN_AUXIOwas used to determine if auxio.o was included in the link or not.But in the
Kconfigwe have:config
SUN_AUXIO
bool
default ySo
SUN_AUXIOis always enabled and it can be killed. Following patch does this but serves as example only. If it can be killed I will take care after the merge of sparc and sparc64 has finished.
Quoted 4 lines
Quoted 2 lines
Did I miss something obvious or is it just something awaiting cleaning up?
Yes, it can die.
OK. I wil take care.
Sam