diff options
author | Anand Gadiyar <gadiyar@ti.com> | 2009-08-24 10:44:45 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-23 09:46:37 -0400 |
commit | d77282c836d6c2601da6a188812b20cff8e9bbe2 (patch) | |
tree | a8a6e9a9a80af6aa75f4ea498bd7fdba3944e567 /drivers/usb | |
parent | 7f536692afd45eea349501beb2b76492a3524a28 (diff) |
USB: OMAP: ISP1301: Compile fix
OMAP: ISP1301: Compile fix
Fix this build error on non- OMAP-H2/H3/H4 systems:
(factored out two empty functions as part of the fix)
CC drivers/usb/otg/isp1301_omap.o
drivers/usb/otg/isp1301_omap.c: In function 'otg_update_isp':
drivers/usb/otg/isp1301_omap.c:635: error: implicit declaration of function 'notresponding'
drivers/usb/otg/isp1301_omap.c: In function 'b_peripheral':
drivers/usb/otg/isp1301_omap.c:973: error: implicit declaration of function 'enable_vbus_draw'
drivers/usb/otg/isp1301_omap.c: In function 'isp_update_otg':
drivers/usb/otg/isp1301_omap.c:1003: error: implicit declaration of function 'enable_vbus_source'
make[2]: *** [drivers/usb/otg/isp1301_omap.o] Error 1
make[1]: *** [drivers/usb/otg] Error 2
make: *** [drivers] Error 2
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/otg/isp1301_omap.c | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/drivers/usb/otg/isp1301_omap.c b/drivers/usb/otg/isp1301_omap.c index e0d56ef2bcb0..77a5f4188999 100644 --- a/drivers/usb/otg/isp1301_omap.c +++ b/drivers/usb/otg/isp1301_omap.c | |||
@@ -117,24 +117,7 @@ static void enable_vbus_draw(struct isp1301 *isp, unsigned mA) | |||
117 | pr_debug(" VBUS %d mA error %d\n", mA, status); | 117 | pr_debug(" VBUS %d mA error %d\n", mA, status); |
118 | } | 118 | } |
119 | 119 | ||
120 | static void enable_vbus_source(struct isp1301 *isp) | 120 | #else |
121 | { | ||
122 | /* this board won't supply more than 8mA vbus power. | ||
123 | * some boards can switch a 100ma "unit load" (or more). | ||
124 | */ | ||
125 | } | ||
126 | |||
127 | |||
128 | /* products will deliver OTG messages with LEDs, GUI, etc */ | ||
129 | static inline void notresponding(struct isp1301 *isp) | ||
130 | { | ||
131 | printk(KERN_NOTICE "OTG device not responding.\n"); | ||
132 | } | ||
133 | |||
134 | |||
135 | #endif | ||
136 | |||
137 | #if defined(CONFIG_MACH_OMAP_H4) | ||
138 | 121 | ||
139 | static void enable_vbus_draw(struct isp1301 *isp, unsigned mA) | 122 | static void enable_vbus_draw(struct isp1301 *isp, unsigned mA) |
140 | { | 123 | { |
@@ -144,6 +127,8 @@ static void enable_vbus_draw(struct isp1301 *isp, unsigned mA) | |||
144 | */ | 127 | */ |
145 | } | 128 | } |
146 | 129 | ||
130 | #endif | ||
131 | |||
147 | static void enable_vbus_source(struct isp1301 *isp) | 132 | static void enable_vbus_source(struct isp1301 *isp) |
148 | { | 133 | { |
149 | /* this board won't supply more than 8mA vbus power. | 134 | /* this board won't supply more than 8mA vbus power. |
@@ -159,8 +144,6 @@ static inline void notresponding(struct isp1301 *isp) | |||
159 | } | 144 | } |
160 | 145 | ||
161 | 146 | ||
162 | #endif | ||
163 | |||
164 | /*-------------------------------------------------------------------------*/ | 147 | /*-------------------------------------------------------------------------*/ |
165 | 148 | ||
166 | static struct i2c_driver isp1301_driver; | 149 | static struct i2c_driver isp1301_driver; |