]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
fec: Let device core handle pinctrl
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 20 May 2013 03:06:17 +0000 (03:06 +0000)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:54:18 +0000 (09:54 +0800)
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: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_main.c

index d48099f03b7f619b15959a4f4fd2b4db2b491805..c5955376aad2a671bcf9f9364fc51fd0b70b818c 100644 (file)
@@ -53,7 +53,6 @@
 #include <linux/of_device.h>
 #include <linux/of_gpio.h>
 #include <linux/of_net.h>
-#include <linux/pinctrl/consumer.h>
 #include <linux/regulator/consumer.h>
 
 #include <asm/cacheflush.h>
@@ -1865,7 +1864,6 @@ fec_probe(struct platform_device *pdev)
        struct resource *r;
        const struct of_device_id *of_id;
        static int dev_id;
-       struct pinctrl *pinctrl;
        struct regulator *reg_phy;
 
        of_id = of_match_device(fec_dt_ids, &pdev->dev);
@@ -1917,12 +1915,6 @@ fec_probe(struct platform_device *pdev)
                fep->phy_interface = ret;
        }
 
-       pinctrl = devm_pinctrl_get_select_default(&pdev->dev);
-       if (IS_ERR(pinctrl)) {
-               ret = PTR_ERR(pinctrl);
-               goto failed_pin;
-       }
-
        fep->clk_ipg = devm_clk_get(&pdev->dev, "ipg");
        if (IS_ERR(fep->clk_ipg)) {
                ret = PTR_ERR(fep->clk_ipg);
@@ -2022,7 +2014,6 @@ failed_regulator:
        clk_disable_unprepare(fep->clk_ipg);
        clk_disable_unprepare(fep->clk_enet_out);
        clk_disable_unprepare(fep->clk_ptp);
-failed_pin:
 failed_clk:
 failed_ioremap:
        free_netdev(ndev);