diff options
Diffstat (limited to 'drivers/usb/gadget/s3c-hsudc.c')
-rw-r--r-- | drivers/usb/gadget/s3c-hsudc.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/usb/gadget/s3c-hsudc.c b/drivers/usb/gadget/s3c-hsudc.c index cfe3cf56d6bd..d5e3e1e58626 100644 --- a/drivers/usb/gadget/s3c-hsudc.c +++ b/drivers/usb/gadget/s3c-hsudc.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <linux/clk.h> | 26 | #include <linux/clk.h> |
27 | #include <linux/usb/ch9.h> | 27 | #include <linux/usb/ch9.h> |
28 | #include <linux/usb/gadget.h> | 28 | #include <linux/usb/gadget.h> |
29 | #include <linux/prefetch.h> | ||
29 | 30 | ||
30 | #include <mach/regs-s3c2443-clock.h> | 31 | #include <mach/regs-s3c2443-clock.h> |
31 | #include <plat/udc.h> | 32 | #include <plat/udc.h> |
@@ -1301,7 +1302,8 @@ static int s3c_hsudc_probe(struct platform_device *pdev) | |||
1301 | hsudc->uclk = clk_get(&pdev->dev, "usb-device"); | 1302 | hsudc->uclk = clk_get(&pdev->dev, "usb-device"); |
1302 | if (IS_ERR(hsudc->uclk)) { | 1303 | if (IS_ERR(hsudc->uclk)) { |
1303 | dev_err(dev, "failed to find usb-device clock source\n"); | 1304 | dev_err(dev, "failed to find usb-device clock source\n"); |
1304 | return PTR_ERR(hsudc->uclk); | 1305 | ret = PTR_ERR(hsudc->uclk); |
1306 | goto err_clk; | ||
1305 | } | 1307 | } |
1306 | clk_enable(hsudc->uclk); | 1308 | clk_enable(hsudc->uclk); |
1307 | 1309 | ||
@@ -1310,7 +1312,8 @@ static int s3c_hsudc_probe(struct platform_device *pdev) | |||
1310 | disable_irq(hsudc->irq); | 1312 | disable_irq(hsudc->irq); |
1311 | local_irq_enable(); | 1313 | local_irq_enable(); |
1312 | return 0; | 1314 | return 0; |
1313 | 1315 | err_clk: | |
1316 | free_irq(hsudc->irq, hsudc); | ||
1314 | err_irq: | 1317 | err_irq: |
1315 | iounmap(hsudc->regs); | 1318 | iounmap(hsudc->regs); |
1316 | 1319 | ||