Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264908
b: refs/heads/master
c: da4fc14
h: refs/heads/master
v: v3
  • Loading branch information
Heiko Stübner authored and Greg Kroah-Hartman committed Aug 22, 2011
1 parent 170d43f commit 79d9420
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 94ab23dd254a1050870160bf9620cd115cb75028
refs/heads/master: da4fc14c9955bbcafb9cdcc34f9772f3e9481bb8
26 changes: 13 additions & 13 deletions trunk/drivers/usb/gadget/s3c-hsudc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1269,19 +1269,6 @@ static int s3c_hsudc_probe(struct platform_device *pdev)
goto err_remap;
}

ret = platform_get_irq(pdev, 0);
if (ret < 0) {
dev_err(dev, "unable to obtain IRQ number\n");
goto err_irq;
}
hsudc->irq = ret;

ret = request_irq(hsudc->irq, s3c_hsudc_irq, 0, driver_name, hsudc);
if (ret < 0) {
dev_err(dev, "irq request failed\n");
goto err_irq;
}

spin_lock_init(&hsudc->lock);

device_initialize(&hsudc->gadget.dev);
Expand All @@ -1299,6 +1286,19 @@ static int s3c_hsudc_probe(struct platform_device *pdev)

s3c_hsudc_setup_ep(hsudc);

ret = platform_get_irq(pdev, 0);
if (ret < 0) {
dev_err(dev, "unable to obtain IRQ number\n");
goto err_irq;
}
hsudc->irq = ret;

ret = request_irq(hsudc->irq, s3c_hsudc_irq, 0, driver_name, hsudc);
if (ret < 0) {
dev_err(dev, "irq request failed\n");
goto err_irq;
}

hsudc->uclk = clk_get(&pdev->dev, "usb-device");
if (IS_ERR(hsudc->uclk)) {
dev_err(dev, "failed to find usb-device clock source\n");
Expand Down

0 comments on commit 79d9420

Please sign in to comment.