Skip to content

Commit

Permalink
serial: max310x: Remove init() and exit() callbacks
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexander Shiyan authored and Greg Kroah-Hartman committed Feb 13, 2014
1 parent e97e155 commit 1e6128b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
7 changes: 0 additions & 7 deletions drivers/tty/serial/max310x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
}

Expand Down
4 changes: 0 additions & 4 deletions include/linux/platform_data/max310x.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ struct max310x_pdata {
const int frequency;
/* GPIO base number (can be negative) */
const int gpio_base;
/* Called during startup */
void (*init)(void);
/* Called before finish */
void (*exit)(void);
};

#endif

0 comments on commit 1e6128b

Please sign in to comment.