Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 289644
b: refs/heads/master
c: 6ef1a92
h: refs/heads/master
v: v3
  • Loading branch information
Tobias Klauser authored and Greg Kroah-Hartman committed Mar 3, 2012
1 parent ccf624e commit ecc9680
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 18 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: 427914801e553806ee6b25241603030ce376d43b
refs/heads/master: 6ef1a9276be455c114c000ef3d43666cb6ded371
21 changes: 4 additions & 17 deletions trunk/drivers/usb/host/sl811-hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1632,6 +1632,9 @@ sl811h_probe(struct platform_device *dev)
u8 tmp, ioaddr = 0;
unsigned long irqflags;

if (usb_disabled())
return -ENODEV;

/* basic sanity checks first. board-specific init logic should
* have initialized these three resources and probably board
* specific platform_data. we don't probe for IRQs, and do only
Expand Down Expand Up @@ -1817,20 +1820,4 @@ struct platform_driver sl811h_driver = {
};
EXPORT_SYMBOL(sl811h_driver);

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

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

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

static void __exit sl811h_cleanup(void)
{
platform_driver_unregister(&sl811h_driver);
}
module_exit(sl811h_cleanup);
module_platform_driver(sl811h_driver);

0 comments on commit ecc9680

Please sign in to comment.