Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303609
b: refs/heads/master
c: 9451df0
h: refs/heads/master
i:
  303607: 1ec1ffc
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Apr 25, 2012
1 parent e1e573c commit 7ae3789
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 34 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: fee5952fba478a395798c99531dc095e440a6ef0
refs/heads/master: 9451df0ee893dbdfca626f2888654f321d241460
34 changes: 1 addition & 33 deletions trunk/drivers/staging/media/as102/as102_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,40 +279,8 @@ void as102_dvb_unregister(struct as102_dev_t *as102_dev)
pr_info("Unregistered device %s", as102_dev->name);
}

static int __init as102_driver_init(void)
{
int ret;

/* register this driver with the low level subsystem */
ret = usb_register(&as102_usb_driver);
if (ret)
err("usb_register failed (ret = %d)", ret);

return ret;
}

/*
* Mandatory function : Adds a special section to the module indicating
* where initialisation function is defined
*/
module_init(as102_driver_init);

/**
* as102_driver_exit - as102 driver exit point
*
* This function is called when device has to be removed.
*/
static void __exit as102_driver_exit(void)
{
/* deregister this driver with the low level bus subsystem */
usb_deregister(&as102_usb_driver);
}
module_usb_driver(as102_usb_driver);

/*
* required function for unload: Adds a special section to the module
* indicating where unload function is defined
*/
module_exit(as102_driver_exit);
/* modinfo details */
MODULE_DESCRIPTION(DRIVER_FULL_NAME);
MODULE_LICENSE("GPL");
Expand Down

0 comments on commit 7ae3789

Please sign in to comment.