diff options
Diffstat (limited to 'drivers/i2c/muxes')
-rw-r--r-- | drivers/i2c/muxes/i2c-mux-gpio.c | 14 | ||||
-rw-r--r-- | drivers/i2c/muxes/i2c-mux-pinctrl.c | 8 |
2 files changed, 11 insertions, 11 deletions
diff --git a/drivers/i2c/muxes/i2c-mux-gpio.c b/drivers/i2c/muxes/i2c-mux-gpio.c index 3b7bc06fe8a6..9f50ef04a4bd 100644 --- a/drivers/i2c/muxes/i2c-mux-gpio.c +++ b/drivers/i2c/muxes/i2c-mux-gpio.c | |||
@@ -53,14 +53,14 @@ static int i2c_mux_gpio_deselect(struct i2c_adapter *adap, void *data, u32 chan) | |||
53 | return 0; | 53 | return 0; |
54 | } | 54 | } |
55 | 55 | ||
56 | static int __devinit match_gpio_chip_by_label(struct gpio_chip *chip, | 56 | static int match_gpio_chip_by_label(struct gpio_chip *chip, |
57 | void *data) | 57 | void *data) |
58 | { | 58 | { |
59 | return !strcmp(chip->label, data); | 59 | return !strcmp(chip->label, data); |
60 | } | 60 | } |
61 | 61 | ||
62 | #ifdef CONFIG_OF | 62 | #ifdef CONFIG_OF |
63 | static int __devinit i2c_mux_gpio_probe_dt(struct gpiomux *mux, | 63 | static int i2c_mux_gpio_probe_dt(struct gpiomux *mux, |
64 | struct platform_device *pdev) | 64 | struct platform_device *pdev) |
65 | { | 65 | { |
66 | struct device_node *np = pdev->dev.of_node; | 66 | struct device_node *np = pdev->dev.of_node; |
@@ -125,14 +125,14 @@ static int __devinit i2c_mux_gpio_probe_dt(struct gpiomux *mux, | |||
125 | return 0; | 125 | return 0; |
126 | } | 126 | } |
127 | #else | 127 | #else |
128 | static int __devinit i2c_mux_gpio_probe_dt(struct gpiomux *mux, | 128 | static int i2c_mux_gpio_probe_dt(struct gpiomux *mux, |
129 | struct platform_device *pdev) | 129 | struct platform_device *pdev) |
130 | { | 130 | { |
131 | return 0; | 131 | return 0; |
132 | } | 132 | } |
133 | #endif | 133 | #endif |
134 | 134 | ||
135 | static int __devinit i2c_mux_gpio_probe(struct platform_device *pdev) | 135 | static int i2c_mux_gpio_probe(struct platform_device *pdev) |
136 | { | 136 | { |
137 | struct gpiomux *mux; | 137 | struct gpiomux *mux; |
138 | struct i2c_adapter *parent; | 138 | struct i2c_adapter *parent; |
@@ -239,7 +239,7 @@ alloc_failed: | |||
239 | return ret; | 239 | return ret; |
240 | } | 240 | } |
241 | 241 | ||
242 | static int __devexit i2c_mux_gpio_remove(struct platform_device *pdev) | 242 | static int i2c_mux_gpio_remove(struct platform_device *pdev) |
243 | { | 243 | { |
244 | struct gpiomux *mux = platform_get_drvdata(pdev); | 244 | struct gpiomux *mux = platform_get_drvdata(pdev); |
245 | int i; | 245 | int i; |
@@ -256,7 +256,7 @@ static int __devexit i2c_mux_gpio_remove(struct platform_device *pdev) | |||
256 | return 0; | 256 | return 0; |
257 | } | 257 | } |
258 | 258 | ||
259 | static const struct of_device_id i2c_mux_gpio_of_match[] __devinitconst = { | 259 | static const struct of_device_id i2c_mux_gpio_of_match[] = { |
260 | { .compatible = "i2c-mux-gpio", }, | 260 | { .compatible = "i2c-mux-gpio", }, |
261 | {}, | 261 | {}, |
262 | }; | 262 | }; |
@@ -264,7 +264,7 @@ MODULE_DEVICE_TABLE(of, i2c_mux_gpio_of_match); | |||
264 | 264 | ||
265 | static struct platform_driver i2c_mux_gpio_driver = { | 265 | static struct platform_driver i2c_mux_gpio_driver = { |
266 | .probe = i2c_mux_gpio_probe, | 266 | .probe = i2c_mux_gpio_probe, |
267 | .remove = __devexit_p(i2c_mux_gpio_remove), | 267 | .remove = i2c_mux_gpio_remove, |
268 | .driver = { | 268 | .driver = { |
269 | .owner = THIS_MODULE, | 269 | .owner = THIS_MODULE, |
270 | .name = "i2c-mux-gpio", | 270 | .name = "i2c-mux-gpio", |
diff --git a/drivers/i2c/muxes/i2c-mux-pinctrl.c b/drivers/i2c/muxes/i2c-mux-pinctrl.c index 7fa5b24b16db..1e44d04d1b22 100644 --- a/drivers/i2c/muxes/i2c-mux-pinctrl.c +++ b/drivers/i2c/muxes/i2c-mux-pinctrl.c | |||
@@ -129,7 +129,7 @@ static inline int i2c_mux_pinctrl_parse_dt(struct i2c_mux_pinctrl *mux, | |||
129 | } | 129 | } |
130 | #endif | 130 | #endif |
131 | 131 | ||
132 | static int __devinit i2c_mux_pinctrl_probe(struct platform_device *pdev) | 132 | static int i2c_mux_pinctrl_probe(struct platform_device *pdev) |
133 | { | 133 | { |
134 | struct i2c_mux_pinctrl *mux; | 134 | struct i2c_mux_pinctrl *mux; |
135 | int (*deselect)(struct i2c_adapter *, void *, u32); | 135 | int (*deselect)(struct i2c_adapter *, void *, u32); |
@@ -241,7 +241,7 @@ err: | |||
241 | return ret; | 241 | return ret; |
242 | } | 242 | } |
243 | 243 | ||
244 | static int __devexit i2c_mux_pinctrl_remove(struct platform_device *pdev) | 244 | static int i2c_mux_pinctrl_remove(struct platform_device *pdev) |
245 | { | 245 | { |
246 | struct i2c_mux_pinctrl *mux = platform_get_drvdata(pdev); | 246 | struct i2c_mux_pinctrl *mux = platform_get_drvdata(pdev); |
247 | int i; | 247 | int i; |
@@ -255,7 +255,7 @@ static int __devexit i2c_mux_pinctrl_remove(struct platform_device *pdev) | |||
255 | } | 255 | } |
256 | 256 | ||
257 | #ifdef CONFIG_OF | 257 | #ifdef CONFIG_OF |
258 | static const struct of_device_id i2c_mux_pinctrl_of_match[] __devinitconst = { | 258 | static const struct of_device_id i2c_mux_pinctrl_of_match[] = { |
259 | { .compatible = "i2c-mux-pinctrl", }, | 259 | { .compatible = "i2c-mux-pinctrl", }, |
260 | {}, | 260 | {}, |
261 | }; | 261 | }; |
@@ -269,7 +269,7 @@ static struct platform_driver i2c_mux_pinctrl_driver = { | |||
269 | .of_match_table = of_match_ptr(i2c_mux_pinctrl_of_match), | 269 | .of_match_table = of_match_ptr(i2c_mux_pinctrl_of_match), |
270 | }, | 270 | }, |
271 | .probe = i2c_mux_pinctrl_probe, | 271 | .probe = i2c_mux_pinctrl_probe, |
272 | .remove = __devexit_p(i2c_mux_pinctrl_remove), | 272 | .remove = i2c_mux_pinctrl_remove, |
273 | }; | 273 | }; |
274 | module_platform_driver(i2c_mux_pinctrl_driver); | 274 | module_platform_driver(i2c_mux_pinctrl_driver); |
275 | 275 | ||