Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 289642
b: refs/heads/master
c: 2e8d3fe
h: refs/heads/master
v: v3
  • Loading branch information
Tobias Klauser authored and Greg Kroah-Hartman committed Mar 3, 2012
1 parent 7f96138 commit 31ea800
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 20 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: b1116dcc63a91ee79a122abea025aab15ea2c8e7
refs/heads/master: 2e8d3fe4bf680b8263e0c81a8aa46a8d07b0f7be
23 changes: 4 additions & 19 deletions trunk/drivers/usb/host/isp116x-hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1569,6 +1569,9 @@ static int __devinit isp116x_probe(struct platform_device *pdev)
int ret = 0;
unsigned long irqflags;

if (usb_disabled())
return -ENODEV;

if (pdev->num_resources < 3) {
ret = -ENODEV;
goto err1;
Expand Down Expand Up @@ -1708,22 +1711,4 @@ static struct platform_driver isp116x_driver = {
},
};

/*-----------------------------------------------------------------*/

static int __init isp116x_init(void)
{
if (usb_disabled())
return -ENODEV;

INFO("driver %s, %s\n", hcd_name, DRIVER_VERSION);
return platform_driver_register(&isp116x_driver);
}

module_init(isp116x_init);

static void __exit isp116x_cleanup(void)
{
platform_driver_unregister(&isp116x_driver);
}

module_exit(isp116x_cleanup);
module_platform_driver(isp116x_driver);

0 comments on commit 31ea800

Please sign in to comment.