Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 289465
b: refs/heads/master
c: aefd492
h: refs/heads/master
i:
  289463: 72cd4ce
v: v3
  • Loading branch information
Tobias Klauser authored and Greg Kroah-Hartman committed Feb 24, 2012
1 parent 9c06840 commit d0748c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 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: 18c75720e667719c923e0547abb60dfcd9c4ee90
refs/heads/master: aefd49206814413b5ade2f98ff062c4c8d47ec4f
20 changes: 4 additions & 16 deletions trunk/drivers/usb/host/isp1362-hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2693,6 +2693,9 @@ static int __devinit isp1362_probe(struct platform_device *pdev)
struct resource *irq_res;
unsigned int irq_flags = 0;

if (usb_disabled())
return -ENODEV;

/* basic sanity checks first. board-specific init logic should
* have initialized this the three resources and probably board
* specific platform_data. we don't probe for IRQs, and do only
Expand Down Expand Up @@ -2864,19 +2867,4 @@ static struct platform_driver isp1362_driver = {
},
};

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

static int __init isp1362_init(void)
{
if (usb_disabled())
return -ENODEV;
pr_info("driver %s, %s\n", hcd_name, DRIVER_VERSION);
return platform_driver_register(&isp1362_driver);
}
module_init(isp1362_init);

static void __exit isp1362_cleanup(void)
{
platform_driver_unregister(&isp1362_driver);
}
module_exit(isp1362_cleanup);
module_platform_driver(isp1362_driver);

0 comments on commit d0748c9

Please sign in to comment.