Merge branch 'sh/dynamic-irq-cleanup' into sh-latest
[firefly-linux-kernel-4.4.55.git] / include / linux / power_supply.h
index fd17ae0f9c20b3f06ed501bfd42f5af67f558588..3b912bee28d1693b8c6617f637354ed2869d306f 100644 (file)
@@ -212,7 +212,7 @@ extern void power_supply_changed(struct power_supply *psy);
 extern int power_supply_am_i_supplied(struct power_supply *psy);
 extern int power_supply_set_battery_charged(struct power_supply *psy);
 
-#if defined(CONFIG_POWER_SUPPLY) || defined(CONFIG_POWER_SUPPLY_MODULE)
+#ifdef CONFIG_POWER_SUPPLY
 extern int power_supply_is_system_supplied(void);
 #else
 static inline int power_supply_is_system_supplied(void) { return -ENOSYS; }