summaryrefslogtreecommitdiff
path: root/drivers/spi
diff options
context:
space:
mode:
authorWills Wang <wills.wang@live.com>2016-04-12 11:09:18 +0800
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2016-05-21 01:36:37 +0200
commit5fabf2e7da1b738c6e0353b6a5a17b1a77ecc2e9 (patch)
tree6cb67d866ea7dbc03ede7505fe3532d0f6eee652 /drivers/spi
parent8cf7a418bcff0492285d7dd2687bd42aaa377e5d (diff)
downloadu-boot-imx-5fabf2e7da1b738c6e0353b6a5a17b1a77ecc2e9.zip
u-boot-imx-5fabf2e7da1b738c6e0353b6a5a17b1a77ecc2e9.tar.gz
u-boot-imx-5fabf2e7da1b738c6e0353b6a5a17b1a77ecc2e9.tar.bz2
ath79: spi: Remove the explicit pinctrl setting
The correct pinctrl is handled automatically so we don't need to do it in the driver. Signed-off-by: Wills Wang <wills.wang@live.com>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/ath79_spi.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/spi/ath79_spi.c b/drivers/spi/ath79_spi.c
index 0c1022d..b18c733 100644
--- a/drivers/spi/ath79_spi.c
+++ b/drivers/spi/ath79_spi.c
@@ -175,19 +175,7 @@ static int ath79_spi_set_mode(struct udevice *bus, uint mode)
static int ath79_spi_probe(struct udevice *bus)
{
struct ath79_spi_priv *priv = dev_get_priv(bus);
- struct udevice *pinctrl;
fdt_addr_t addr;
- int ret;
-
- ret = uclass_get_device(UCLASS_PINCTRL, 0, &pinctrl);
- if (ret)
- return ret;
- ret = pinctrl_get_periph_id(pinctrl, bus);
- if (ret < 0)
- return ret;
- ret = pinctrl_request(pinctrl, ret, 0);
- if (ret < 0)
- return ret;
addr = dev_get_addr(bus);
if (addr == FDT_ADDR_T_NONE)