aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-janz-ttl.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio/gpio-janz-ttl.c')
-rw-r--r--drivers/gpio/gpio-janz-ttl.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpio/gpio-janz-ttl.c b/drivers/gpio/gpio-janz-ttl.c
index f2f000dd70b3..7d0a04169a35 100644
--- a/drivers/gpio/gpio-janz-ttl.c
+++ b/drivers/gpio/gpio-janz-ttl.c
@@ -108,13 +108,13 @@ static void ttl_set_value(struct gpio_chip *gpio, unsigned offset, int value)
108 spin_unlock(&mod->lock); 108 spin_unlock(&mod->lock);
109} 109}
110 110
111static void __devinit ttl_write_reg(struct ttl_module *mod, u8 reg, u16 val) 111static void ttl_write_reg(struct ttl_module *mod, u8 reg, u16 val)
112{ 112{
113 iowrite16be(reg, &mod->regs->control); 113 iowrite16be(reg, &mod->regs->control);
114 iowrite16be(val, &mod->regs->control); 114 iowrite16be(val, &mod->regs->control);
115} 115}
116 116
117static void __devinit ttl_setup_device(struct ttl_module *mod) 117static void ttl_setup_device(struct ttl_module *mod)
118{ 118{
119 /* reset the device to a known state */ 119 /* reset the device to a known state */
120 iowrite16be(0x0000, &mod->regs->control); 120 iowrite16be(0x0000, &mod->regs->control);
@@ -140,7 +140,7 @@ static void __devinit ttl_setup_device(struct ttl_module *mod)
140 ttl_write_reg(mod, MASTER_CONF_CTL, CONF_PAE | CONF_PBE | CONF_PCE); 140 ttl_write_reg(mod, MASTER_CONF_CTL, CONF_PAE | CONF_PBE | CONF_PCE);
141} 141}
142 142
143static int __devinit ttl_probe(struct platform_device *pdev) 143static int ttl_probe(struct platform_device *pdev)
144{ 144{
145 struct janz_platform_data *pdata; 145 struct janz_platform_data *pdata;
146 struct device *dev = &pdev->dev; 146 struct device *dev = &pdev->dev;
@@ -211,7 +211,7 @@ out_return:
211 return ret; 211 return ret;
212} 212}
213 213
214static int __devexit ttl_remove(struct platform_device *pdev) 214static int ttl_remove(struct platform_device *pdev)
215{ 215{
216 struct ttl_module *mod = platform_get_drvdata(pdev); 216 struct ttl_module *mod = platform_get_drvdata(pdev);
217 struct device *dev = &pdev->dev; 217 struct device *dev = &pdev->dev;
@@ -234,7 +234,7 @@ static struct platform_driver ttl_driver = {
234 .owner = THIS_MODULE, 234 .owner = THIS_MODULE,
235 }, 235 },
236 .probe = ttl_probe, 236 .probe = ttl_probe,
237 .remove = __devexit_p(ttl_remove), 237 .remove = ttl_remove,
238}; 238};
239 239
240module_platform_driver(ttl_driver); 240module_platform_driver(ttl_driver);