Skip to content

Commit ee42b3a

Browse files
broonieSamuel Ortiz
authored andcommitted
mfd: wm8994: Add __devinit and __devexit annotations for probe and remove
Fixes warnings and needed for correctness. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
1 parent 1fa93bb commit ee42b3a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/mfd/wm8994-core.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -613,8 +613,8 @@ static const struct of_device_id wm8994_of_match[] = {
613613
};
614614
MODULE_DEVICE_TABLE(of, wm8994_of_match);
615615

616-
static int wm8994_i2c_probe(struct i2c_client *i2c,
617-
const struct i2c_device_id *id)
616+
static __devinit int wm8994_i2c_probe(struct i2c_client *i2c,
617+
const struct i2c_device_id *id)
618618
{
619619
struct wm8994 *wm8994;
620620
int ret;
@@ -639,7 +639,7 @@ static int wm8994_i2c_probe(struct i2c_client *i2c,
639639
return wm8994_device_init(wm8994, i2c->irq);
640640
}
641641

642-
static int wm8994_i2c_remove(struct i2c_client *i2c)
642+
static __devexit int wm8994_i2c_remove(struct i2c_client *i2c)
643643
{
644644
struct wm8994 *wm8994 = i2c_get_clientdata(i2c);
645645

@@ -668,7 +668,7 @@ static struct i2c_driver wm8994_i2c_driver = {
668668
.of_match_table = wm8994_of_match,
669669
},
670670
.probe = wm8994_i2c_probe,
671-
.remove = wm8994_i2c_remove,
671+
.remove = __devexit_p(wm8994_i2c_remove),
672672
.id_table = wm8994_i2c_id,
673673
};
674674

0 commit comments

Comments
 (0)