Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

macintosh: Always export pmu_[un]register_sleep_notifier if CONFIG_PM set

This fixes a build error when building the pmac sound driver as a
module for 64-bit powermacs.

Signed-off-by: Paul Mackerras <paulus@samba.org>

+2 -2
+2 -2
drivers/macintosh/via-pmu.c
··· 2053 2053 __list_add(&n->list, list->prev, list); 2054 2054 return 0; 2055 2055 } 2056 + EXPORT_SYMBOL(pmu_register_sleep_notifier); 2056 2057 2057 2058 int 2058 2059 pmu_unregister_sleep_notifier(struct pmu_sleep_notifier* n) ··· 2064 2063 n->list.next = NULL; 2065 2064 return 0; 2066 2065 } 2066 + EXPORT_SYMBOL(pmu_unregister_sleep_notifier); 2067 2067 #endif /* CONFIG_PM */ 2068 2068 2069 2069 #if defined(CONFIG_PM) && defined(CONFIG_PPC32) ··· 3141 3139 EXPORT_SYMBOL(pmu_i2c_simple_read); 3142 3140 EXPORT_SYMBOL(pmu_i2c_simple_write); 3143 3141 #if defined(CONFIG_PM) && defined(CONFIG_PPC32) 3144 - EXPORT_SYMBOL(pmu_register_sleep_notifier); 3145 - EXPORT_SYMBOL(pmu_unregister_sleep_notifier); 3146 3142 EXPORT_SYMBOL(pmu_enable_irled); 3147 3143 EXPORT_SYMBOL(pmu_battery_count); 3148 3144 EXPORT_SYMBOL(pmu_batteries);