linux/drivers/power
Axel Lin 1c74529dbe pda_power: Fix build error if !CONFIG_USB_OTG_UTILS
commit 9ad63986c6
"pda_power: Add support for using otg transceiver events"
introduces below build error if !CONFIG_USB_OTG_UTILS.

  CC      drivers/power/pda_power.o
drivers/power/pda_power.c: In function 'pda_power_probe':
drivers/power/pda_power.c:322: error: 'otg_is_usb_online' undeclared (first use in this function)
drivers/power/pda_power.c:322: error: (Each undeclared identifier is reported only once
drivers/power/pda_power.c:322: error: for each function it appears in.)
drivers/power/pda_power.c:325: error: 'otg_is_ac_online' undeclared (first use in this function)
drivers/power/pda_power.c:371: error: 'otg_handle_notification' undeclared (first use in this function)
make[2]: *** [drivers/power/pda_power.o] Error 1
make[1]: *** [drivers/power] Error 2
make: *** [drivers] Error 2

This patch adds #ifdef CONFIG_USB_OTG_UTILS guards at necessary places to fix
build errors.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
2011-08-23 17:31:52 +04:00
..
apm_power.c apm_power: Fix style error in macros 2011-07-08 16:55:56 +04:00
bq20z75.c bq20z75: Enable detection after registering 2011-07-08 16:53:07 +04:00
bq27x00_battery.c bq27x00_battery: Name of cycle count property 2011-05-20 19:25:05 +04:00
collie_battery.c power_supply: Don't use flush_scheduled_work() 2010-12-22 02:39:56 +03:00
da9030_battery.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
ds2760_battery.c ds2760_battery: Fix rated capacity of the hx4700 1800mAh battery 2011-05-20 19:25:10 +04:00
ds2780_battery.c ds2780_battery&z2_battery: Add __devexit_p at necessary places 2011-08-19 21:03:21 +04:00
ds2782_battery.c Change Ryan Mallon's email address across the kernel 2011-06-16 11:22:05 +02:00
gpio-charger.c gpio-charger: Fix checking return value of request_any_context_irq 2011-07-08 17:01:59 +04:00
intel_mid_battery.c treewide: remove extra semicolons 2011-04-10 17:01:05 +02:00
isp1704_charger.c isp1704_charger: Allow board specific powering routine 2011-04-20 17:48:49 +04:00
jz4740-battery.c jz4740: silence warnings related to mfd_get_cell changes 2011-03-23 10:42:02 +01:00
Kconfig Merge git://git.infradead.org/battery-2.6 2011-07-31 06:24:50 -10:00
Makefile Merge git://git.infradead.org/battery-2.6 2011-07-31 06:24:50 -10:00
max8903_charger.c max8903_charger: Add "platform:" prefix for platform modalias 2011-08-19 21:03:20 +04:00
max8925_power.c power_supply: Use max8925 platform_data from cell 2011-05-26 19:45:32 +02:00
max8997_charger.c max8997_charger&max8998_charger: Fix unterminated platform_device_id tables 2011-08-19 21:03:20 +04:00
max8998_charger.c max8998_charger: Allow full timeout not set, leave it unchanged 2011-08-19 21:03:26 +04:00
max17040_battery.c i2c: Remove all i2c_set_clientdata(client, NULL) in drivers 2010-06-03 11:33:58 +02:00
max17042_battery.c max17042_battery: Bugfix of incorrect voltage register value interpretation 2011-08-19 21:03:35 +04:00
olpc_battery.c olpc_battery: Add wakeup support 2011-08-19 21:03:25 +04:00
pcf50633-charger.c pcf50633-charger: Add missing sysfs_remove_group() 2010-09-22 16:14:49 +04:00
pda_power.c pda_power: Fix build error if !CONFIG_USB_OTG_UTILS 2011-08-23 17:31:52 +04:00
pmu_battery.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
power_supply_core.c power_supply: Initialize changed_work before calling device_add 2011-02-22 11:01:42 +01:00
power_supply_leds.c power_supply: Add new LED trigger charging-blink-solid-full 2011-01-31 16:31:51 +03:00
power_supply_sysfs.c wm831x_power: Only register WM831x battery charger if enabled 2011-08-19 21:03:23 +04:00
power_supply.h power_supply: Use attribute groups 2010-05-19 12:14:28 +04:00
s3c_adc_battery.c s3c-adc-battery: Fix compilation error due to missing header (module.h) 2011-08-19 21:01:46 +04:00
test_power.c power: Make test_power driver more dynamic. 2011-05-20 19:25:08 +04:00
tosa_battery.c power_supply: Don't use flush_scheduled_work() 2010-12-22 02:39:56 +03:00
twl4030_charger.c twl4030_charger: Fix warnings 2011-07-08 16:57:59 +04:00
wm97xx_battery.c power_supply: Don't use flush_scheduled_work() 2010-12-22 02:39:56 +03:00
wm831x_backup.c wm831x_backup: Support multiple instances 2011-07-08 16:56:47 +04:00
wm831x_power.c wm831x_power: Only register WM831x battery charger if enabled 2011-08-19 21:03:23 +04:00
wm8350_power.c mfd: Update WM8350 drivers for changed interrupt numbers 2010-03-07 22:16:58 +01:00
z2_battery.c ds2780_battery&z2_battery: Add __devexit_p at necessary places 2011-08-19 21:03:21 +04:00