diff options
author | Paul Walmsley <paul@pwsan.com> | 2012-04-20 17:29:20 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-06-04 12:26:00 -0400 |
commit | 79d6680f017a8084ae746f5d845a4fdc4f3a5e43 (patch) | |
tree | b51f01121adcbb7e7ca7be21ab45f46212970bb2 | |
parent | f8f5701bdaf9134b1f90e5044a82c66324d2073f (diff) |
usb: otg: isp1301_omap: resolve unused variable warning from gcc
Resolve this build warning:
drivers/usb/otg/isp1301_omap.c: In function 'isp1301_set_peripheral':
drivers/usb/otg/isp1301_omap.c:1340:6: warning: unused variable 'l'
This shows up when building with the 'omap1_defconfig' and
'5912osk_testconfig' configs from git://git.pwsan.com/omap_kconfigs.
Compile-tested only.
Cc: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Cc: Felipe Balbi <balbi@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r-- | drivers/usb/otg/isp1301_omap.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/usb/otg/isp1301_omap.c b/drivers/usb/otg/isp1301_omap.c index 70cf5d7bca48..33cd709b084e 100644 --- a/drivers/usb/otg/isp1301_omap.c +++ b/drivers/usb/otg/isp1301_omap.c | |||
@@ -1336,9 +1336,6 @@ static int | |||
1336 | isp1301_set_peripheral(struct usb_otg *otg, struct usb_gadget *gadget) | 1336 | isp1301_set_peripheral(struct usb_otg *otg, struct usb_gadget *gadget) |
1337 | { | 1337 | { |
1338 | struct isp1301 *isp = container_of(otg->phy, struct isp1301, phy); | 1338 | struct isp1301 *isp = container_of(otg->phy, struct isp1301, phy); |
1339 | #ifndef CONFIG_USB_OTG | ||
1340 | u32 l; | ||
1341 | #endif | ||
1342 | 1339 | ||
1343 | if (!otg || isp != the_transceiver) | 1340 | if (!otg || isp != the_transceiver) |
1344 | return -ENODEV; | 1341 | return -ENODEV; |
@@ -1365,10 +1362,14 @@ isp1301_set_peripheral(struct usb_otg *otg, struct usb_gadget *gadget) | |||
1365 | otg->gadget = gadget; | 1362 | otg->gadget = gadget; |
1366 | // FIXME update its refcount | 1363 | // FIXME update its refcount |
1367 | 1364 | ||
1368 | l = omap_readl(OTG_CTRL) & OTG_CTRL_MASK; | 1365 | { |
1369 | l &= ~(OTG_XCEIV_OUTPUTS|OTG_CTRL_BITS); | 1366 | u32 l; |
1370 | l |= OTG_ID; | 1367 | |
1371 | omap_writel(l, OTG_CTRL); | 1368 | l = omap_readl(OTG_CTRL) & OTG_CTRL_MASK; |
1369 | l &= ~(OTG_XCEIV_OUTPUTS|OTG_CTRL_BITS); | ||
1370 | l |= OTG_ID; | ||
1371 | omap_writel(l, OTG_CTRL); | ||
1372 | } | ||
1372 | 1373 | ||
1373 | power_up(isp); | 1374 | power_up(isp); |
1374 | isp->phy.state = OTG_STATE_B_IDLE; | 1375 | isp->phy.state = OTG_STATE_B_IDLE; |