mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 22:50:41 +00:00
i2c: imx: Let device core handle pinctrl
Since commit ab78029 (drivers/pinctrl: grab default handles from device core), we can rely on device core for handling pinctrl. So remove devm_pinctrl_get_select_default() from the driver. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
parent
4243fa0bad
commit
76b1f723c4
@ -51,7 +51,6 @@
|
|||||||
#include <linux/of.h>
|
#include <linux/of.h>
|
||||||
#include <linux/of_device.h>
|
#include <linux/of_device.h>
|
||||||
#include <linux/of_i2c.h>
|
#include <linux/of_i2c.h>
|
||||||
#include <linux/pinctrl/consumer.h>
|
|
||||||
#include <linux/platform_data/i2c-imx.h>
|
#include <linux/platform_data/i2c-imx.h>
|
||||||
|
|
||||||
/** Defines ********************************************************************
|
/** Defines ********************************************************************
|
||||||
@ -493,7 +492,6 @@ static int __init i2c_imx_probe(struct platform_device *pdev)
|
|||||||
struct imx_i2c_struct *i2c_imx;
|
struct imx_i2c_struct *i2c_imx;
|
||||||
struct resource *res;
|
struct resource *res;
|
||||||
struct imxi2c_platform_data *pdata = pdev->dev.platform_data;
|
struct imxi2c_platform_data *pdata = pdev->dev.platform_data;
|
||||||
struct pinctrl *pinctrl;
|
|
||||||
void __iomem *base;
|
void __iomem *base;
|
||||||
int irq, ret;
|
int irq, ret;
|
||||||
u32 bitrate;
|
u32 bitrate;
|
||||||
@ -535,12 +533,6 @@ static int __init i2c_imx_probe(struct platform_device *pdev)
|
|||||||
i2c_imx->adapter.dev.of_node = pdev->dev.of_node;
|
i2c_imx->adapter.dev.of_node = pdev->dev.of_node;
|
||||||
i2c_imx->base = base;
|
i2c_imx->base = base;
|
||||||
|
|
||||||
pinctrl = devm_pinctrl_get_select_default(&pdev->dev);
|
|
||||||
if (IS_ERR(pinctrl)) {
|
|
||||||
dev_err(&pdev->dev, "can't get/select pinctrl\n");
|
|
||||||
return PTR_ERR(pinctrl);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Get I2C clock */
|
/* Get I2C clock */
|
||||||
i2c_imx->clk = devm_clk_get(&pdev->dev, NULL);
|
i2c_imx->clk = devm_clk_get(&pdev->dev, NULL);
|
||||||
if (IS_ERR(i2c_imx->clk)) {
|
if (IS_ERR(i2c_imx->clk)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user