From 1e6128b63597adf97f1865fba7d778a6f8ccb7a0 Mon Sep 17 00:00:00 2001 From: Alexander Shiyan Date: Fri, 7 Feb 2014 18:16:05 +0400 Subject: 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 Signed-off-by: Greg Kroah-Hartman --- drivers/tty/serial/max310x.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'drivers') diff --git a/drivers/tty/serial/max310x.c b/drivers/tty/serial/max310x.c index 313bdf0bb21..202c1fb6542 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, return PTR_ERR(s->regmap); } - /* Board specific configure */ - if (s->pdata->init) - s->pdata->init(); - /* Check device to ensure we are talking to what we expect */ ret = devtype->detect(dev); if (ret) @@ -1265,9 +1261,6 @@ static int max310x_remove(struct device *dev) ret = gpiochip_remove(&s->gpio); #endif - if (s->pdata->exit) - s->pdata->exit(); - return ret; } -- cgit v1.2.3-70-g09d2