aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-adnp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio/gpio-adnp.c')
-rw-r--r--drivers/gpio/gpio-adnp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpio/gpio-adnp.c b/drivers/gpio/gpio-adnp.c
index 3df88336415e..e60567fc5073 100644
--- a/drivers/gpio/gpio-adnp.c
+++ b/drivers/gpio/gpio-adnp.c
@@ -516,7 +516,7 @@ static void adnp_irq_teardown(struct adnp *adnp)
516 irq_domain_remove(adnp->domain); 516 irq_domain_remove(adnp->domain);
517} 517}
518 518
519static __devinit int adnp_i2c_probe(struct i2c_client *client, 519static int adnp_i2c_probe(struct i2c_client *client,
520 const struct i2c_device_id *id) 520 const struct i2c_device_id *id)
521{ 521{
522 struct device_node *np = client->dev.of_node; 522 struct device_node *np = client->dev.of_node;
@@ -563,7 +563,7 @@ teardown:
563 return err; 563 return err;
564} 564}
565 565
566static __devexit int adnp_i2c_remove(struct i2c_client *client) 566static int adnp_i2c_remove(struct i2c_client *client)
567{ 567{
568 struct adnp *adnp = i2c_get_clientdata(client); 568 struct adnp *adnp = i2c_get_clientdata(client);
569 struct device_node *np = client->dev.of_node; 569 struct device_node *np = client->dev.of_node;
@@ -582,13 +582,13 @@ static __devexit int adnp_i2c_remove(struct i2c_client *client)
582 return 0; 582 return 0;
583} 583}
584 584
585static const struct i2c_device_id adnp_i2c_id[] __devinitconst = { 585static const struct i2c_device_id adnp_i2c_id[] = {
586 { "gpio-adnp" }, 586 { "gpio-adnp" },
587 { }, 587 { },
588}; 588};
589MODULE_DEVICE_TABLE(i2c, adnp_i2c_id); 589MODULE_DEVICE_TABLE(i2c, adnp_i2c_id);
590 590
591static const struct of_device_id adnp_of_match[] __devinitconst = { 591static const struct of_device_id adnp_of_match[] = {
592 { .compatible = "ad,gpio-adnp", }, 592 { .compatible = "ad,gpio-adnp", },
593 { }, 593 { },
594}; 594};
@@ -601,7 +601,7 @@ static struct i2c_driver adnp_i2c_driver = {
601 .of_match_table = of_match_ptr(adnp_of_match), 601 .of_match_table = of_match_ptr(adnp_of_match),
602 }, 602 },
603 .probe = adnp_i2c_probe, 603 .probe = adnp_i2c_probe,
604 .remove = __devexit_p(adnp_i2c_remove), 604 .remove = adnp_i2c_remove,
605 .id_table = adnp_i2c_id, 605 .id_table = adnp_i2c_id,
606}; 606};
607module_i2c_driver(adnp_i2c_driver); 607module_i2c_driver(adnp_i2c_driver);