Commit 897a8a7d authored by Soren Brinkmann's avatar Soren Brinkmann Committed by Greg Kroah-Hartman

Revert "net/macb: add pinctrl consumer support"

[ Upstream commit 9026968a ]

This reverts commit 8ef29f8a.
The driver core already calls pinctrl_get() and claims the default
state. There is no need to replicate this in the driver.
Acked-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e92b35f5
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
#include <linux/of_device.h> #include <linux/of_device.h>
#include <linux/of_mdio.h> #include <linux/of_mdio.h>
#include <linux/of_net.h> #include <linux/of_net.h>
#include <linux/pinctrl/consumer.h>
#include "macb.h" #include "macb.h"
...@@ -1803,7 +1802,6 @@ static int __init macb_probe(struct platform_device *pdev) ...@@ -1803,7 +1802,6 @@ static int __init macb_probe(struct platform_device *pdev)
struct phy_device *phydev; struct phy_device *phydev;
u32 config; u32 config;
int err = -ENXIO; int err = -ENXIO;
struct pinctrl *pinctrl;
const char *mac; const char *mac;
regs = platform_get_resource(pdev, IORESOURCE_MEM, 0); regs = platform_get_resource(pdev, IORESOURCE_MEM, 0);
...@@ -1812,15 +1810,6 @@ static int __init macb_probe(struct platform_device *pdev) ...@@ -1812,15 +1810,6 @@ static int __init macb_probe(struct platform_device *pdev)
goto err_out; goto err_out;
} }
pinctrl = devm_pinctrl_get_select_default(&pdev->dev);
if (IS_ERR(pinctrl)) {
err = PTR_ERR(pinctrl);
if (err == -EPROBE_DEFER)
goto err_out;
dev_warn(&pdev->dev, "No pinctrl provided\n");
}
err = -ENOMEM; err = -ENOMEM;
dev = alloc_etherdev(sizeof(*bp)); dev = alloc_etherdev(sizeof(*bp));
if (!dev) if (!dev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment