Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fec: 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: David S. Miller <davem@davemloft.net>

authored by

Fabio Estevam and committed by
David S. Miller
4a5bddf7 1ca2983a

-9
-9
drivers/net/ethernet/freescale/fec_main.c
··· 53 53 #include <linux/of_device.h> 54 54 #include <linux/of_gpio.h> 55 55 #include <linux/of_net.h> 56 - #include <linux/pinctrl/consumer.h> 57 56 #include <linux/regulator/consumer.h> 58 57 59 58 #include <asm/cacheflush.h> ··· 1840 1841 struct resource *r; 1841 1842 const struct of_device_id *of_id; 1842 1843 static int dev_id; 1843 - struct pinctrl *pinctrl; 1844 1844 struct regulator *reg_phy; 1845 1845 1846 1846 of_id = of_match_device(fec_dt_ids, &pdev->dev); ··· 1887 1889 fep->phy_interface = PHY_INTERFACE_MODE_MII; 1888 1890 } else { 1889 1891 fep->phy_interface = ret; 1890 - } 1891 - 1892 - pinctrl = devm_pinctrl_get_select_default(&pdev->dev); 1893 - if (IS_ERR(pinctrl)) { 1894 - ret = PTR_ERR(pinctrl); 1895 - goto failed_pin; 1896 1892 } 1897 1893 1898 1894 fep->clk_ipg = devm_clk_get(&pdev->dev, "ipg"); ··· 1988 1996 clk_disable_unprepare(fep->clk_ipg); 1989 1997 clk_disable_unprepare(fep->clk_enet_out); 1990 1998 clk_disable_unprepare(fep->clk_ptp); 1991 - failed_pin: 1992 1999 failed_clk: 1993 2000 failed_ioremap: 1994 2001 free_netdev(ndev);