aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/max310x.c
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2014-02-07 09:16:05 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-02-13 12:33:04 -0500
commit1e6128b63597adf97f1865fba7d778a6f8ccb7a0 (patch)
tree3f47e01014d93cd9db0f3aa52f037a31ca40a482 /drivers/tty/serial/max310x.c
parente97e15561cd885926f78200a1e75e713172da60e (diff)
serial: max310x: Remove init() and exit() callbacks
These callbacks were previously used for the IC power initialization. If this initialization will be needed in the future, it should be implemented with the regulator API. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/max310x.c')
-rw-r--r--drivers/tty/serial/max310x.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/tty/serial/max310x.c b/drivers/tty/serial/max310x.c
index 313bdf0bb21b..202c1fb6542d 100644
--- a/drivers/tty/serial/max310x.c
+++ b/drivers/tty/serial/max310x.c
@@ -1135,10 +1135,6 @@ static int max310x_probe(struct device *dev, int is_spi,
1135 return PTR_ERR(s->regmap); 1135 return PTR_ERR(s->regmap);
1136 } 1136 }
1137 1137
1138 /* Board specific configure */
1139 if (s->pdata->init)
1140 s->pdata->init();
1141
1142 /* Check device to ensure we are talking to what we expect */ 1138 /* Check device to ensure we are talking to what we expect */
1143 ret = devtype->detect(dev); 1139 ret = devtype->detect(dev);
1144 if (ret) 1140 if (ret)
@@ -1265,9 +1261,6 @@ static int max310x_remove(struct device *dev)
1265 ret = gpiochip_remove(&s->gpio); 1261 ret = gpiochip_remove(&s->gpio);
1266#endif 1262#endif
1267 1263
1268 if (s->pdata->exit)
1269 s->pdata->exit();
1270
1271 return ret; 1264 return ret;
1272} 1265}
1273 1266