diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-08-23 20:34:33 +0800 |
---|---|---|
committer | Anton Vorontsov <cbouatmailru@gmail.com> | 2011-08-23 17:31:52 +0400 |
commit | 1c74529dbecf8839d3ed360690f937d68c14e55b (patch) | |
tree | 22ff0ecdec593c6f613f75944bd79e2ccdadd888 /drivers/power/power_supply_sysfs.c | |
parent | cf7a8c03db792894f436db5f3ffc44d947b9b068 (diff) |
pda_power: Fix build error if !CONFIG_USB_OTG_UTILS
commit 9ad63986c606c60e2e916b1b96f22991f966d9cc
"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>
Diffstat (limited to 'drivers/power/power_supply_sysfs.c')
0 files changed, 0 insertions, 0 deletions