usb: chipidea: ci13xxx_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. Cc: <linux-usb@vger.kernel.org> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Tested-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2b81c083c6
commit
a95fd18973
@ -20,7 +20,6 @@
|
|||||||
#include <linux/usb/chipidea.h>
|
#include <linux/usb/chipidea.h>
|
||||||
#include <linux/clk.h>
|
#include <linux/clk.h>
|
||||||
#include <linux/regulator/consumer.h>
|
#include <linux/regulator/consumer.h>
|
||||||
#include <linux/pinctrl/consumer.h>
|
|
||||||
|
|
||||||
#include "ci.h"
|
#include "ci.h"
|
||||||
#include "ci13xxx_imx.h"
|
#include "ci13xxx_imx.h"
|
||||||
@ -103,7 +102,6 @@ static int ci13xxx_imx_probe(struct platform_device *pdev)
|
|||||||
struct device_node *phy_np;
|
struct device_node *phy_np;
|
||||||
struct resource *res;
|
struct resource *res;
|
||||||
struct regulator *reg_vbus;
|
struct regulator *reg_vbus;
|
||||||
struct pinctrl *pinctrl;
|
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (of_find_property(pdev->dev.of_node, "fsl,usbmisc", NULL)
|
if (of_find_property(pdev->dev.of_node, "fsl,usbmisc", NULL)
|
||||||
@ -122,11 +120,6 @@ static int ci13xxx_imx_probe(struct platform_device *pdev)
|
|||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
pinctrl = devm_pinctrl_get_select_default(&pdev->dev);
|
|
||||||
if (IS_ERR(pinctrl))
|
|
||||||
dev_warn(&pdev->dev, "pinctrl get/select failed, err=%ld\n",
|
|
||||||
PTR_ERR(pinctrl));
|
|
||||||
|
|
||||||
data->clk = devm_clk_get(&pdev->dev, NULL);
|
data->clk = devm_clk_get(&pdev->dev, NULL);
|
||||||
if (IS_ERR(data->clk)) {
|
if (IS_ERR(data->clk)) {
|
||||||
dev_err(&pdev->dev,
|
dev_err(&pdev->dev,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user