diff options
Diffstat (limited to 'drivers/mfd/stmpe-i2c.c')
-rw-r--r-- | drivers/mfd/stmpe-i2c.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/mfd/stmpe-i2c.c b/drivers/mfd/stmpe-i2c.c index 947a06a1845f..fd5fcb630685 100644 --- a/drivers/mfd/stmpe-i2c.c +++ b/drivers/mfd/stmpe-i2c.c | |||
@@ -52,7 +52,7 @@ static struct stmpe_client_info i2c_ci = { | |||
52 | .write_block = i2c_block_write, | 52 | .write_block = i2c_block_write, |
53 | }; | 53 | }; |
54 | 54 | ||
55 | static int __devinit | 55 | static int |
56 | stmpe_i2c_probe(struct i2c_client *i2c, const struct i2c_device_id *id) | 56 | stmpe_i2c_probe(struct i2c_client *i2c, const struct i2c_device_id *id) |
57 | { | 57 | { |
58 | i2c_ci.data = (void *)id; | 58 | i2c_ci.data = (void *)id; |
@@ -63,7 +63,7 @@ stmpe_i2c_probe(struct i2c_client *i2c, const struct i2c_device_id *id) | |||
63 | return stmpe_probe(&i2c_ci, id->driver_data); | 63 | return stmpe_probe(&i2c_ci, id->driver_data); |
64 | } | 64 | } |
65 | 65 | ||
66 | static int __devexit stmpe_i2c_remove(struct i2c_client *i2c) | 66 | static int stmpe_i2c_remove(struct i2c_client *i2c) |
67 | { | 67 | { |
68 | struct stmpe *stmpe = dev_get_drvdata(&i2c->dev); | 68 | struct stmpe *stmpe = dev_get_drvdata(&i2c->dev); |
69 | 69 | ||
@@ -82,13 +82,15 @@ static const struct i2c_device_id stmpe_i2c_id[] = { | |||
82 | MODULE_DEVICE_TABLE(i2c, stmpe_id); | 82 | MODULE_DEVICE_TABLE(i2c, stmpe_id); |
83 | 83 | ||
84 | static struct i2c_driver stmpe_i2c_driver = { | 84 | static struct i2c_driver stmpe_i2c_driver = { |
85 | .driver.name = "stmpe-i2c", | 85 | .driver = { |
86 | .driver.owner = THIS_MODULE, | 86 | .name = "stmpe-i2c", |
87 | .owner = THIS_MODULE, | ||
87 | #ifdef CONFIG_PM | 88 | #ifdef CONFIG_PM |
88 | .driver.pm = &stmpe_dev_pm_ops, | 89 | .pm = &stmpe_dev_pm_ops, |
89 | #endif | 90 | #endif |
91 | }, | ||
90 | .probe = stmpe_i2c_probe, | 92 | .probe = stmpe_i2c_probe, |
91 | .remove = __devexit_p(stmpe_i2c_remove), | 93 | .remove = stmpe_i2c_remove, |
92 | .id_table = stmpe_i2c_id, | 94 | .id_table = stmpe_i2c_id, |
93 | }; | 95 | }; |
94 | 96 | ||