Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e6128b6 authored by Alexander Shiyan's avatar Alexander Shiyan Committed by Greg Kroah-Hartman
Browse files

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: default avatarAlexander Shiyan <shc_work@mail.ru>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e97e1556
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -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;
}

+0 −4
Original line number Diff line number Diff line
@@ -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