mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
NFC: pn544: Use module_i2c_driver
The pn544 init routine does nothing but adding the driver to the i2c bus. Signed-off-by: Samuel Ortiz <[email protected]>
This commit is contained in:
parent
aa74103071
commit
234d4d6b10
1 changed files with 1 additions and 23 deletions
|
|
@ -472,29 +472,7 @@ static struct i2c_driver pn544_hci_i2c_driver = {
|
|||
.remove = __devexit_p(pn544_hci_i2c_remove),
|
||||
};
|
||||
|
||||
static int __init pn544_hci_i2c_init(void)
|
||||
{
|
||||
int r;
|
||||
|
||||
pr_debug(DRIVER_DESC ": %s\n", __func__);
|
||||
|
||||
r = i2c_add_driver(&pn544_hci_i2c_driver);
|
||||
if (r) {
|
||||
pr_err(PN544_HCI_I2C_DRIVER_NAME
|
||||
": driver registration failed\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void __exit pn544_hci_i2c_exit(void)
|
||||
{
|
||||
i2c_del_driver(&pn544_hci_i2c_driver);
|
||||
}
|
||||
|
||||
module_init(pn544_hci_i2c_init);
|
||||
module_exit(pn544_hci_i2c_exit);
|
||||
module_i2c_driver(pn544_hci_i2c_driver);
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_DESCRIPTION(DRIVER_DESC);
|
||||
|
|
|
|||
Loading…
Reference in a new issue