mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
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>
This commit is contained in:
parent
8cf7a418bc
commit
5fabf2e7da
|
@ -175,19 +175,7 @@ static int ath79_spi_set_mode(struct udevice *bus, uint mode)
|
||||||
static int ath79_spi_probe(struct udevice *bus)
|
static int ath79_spi_probe(struct udevice *bus)
|
||||||
{
|
{
|
||||||
struct ath79_spi_priv *priv = dev_get_priv(bus);
|
struct ath79_spi_priv *priv = dev_get_priv(bus);
|
||||||
struct udevice *pinctrl;
|
|
||||||
fdt_addr_t addr;
|
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);
|
addr = dev_get_addr(bus);
|
||||||
if (addr == FDT_ADDR_T_NONE)
|
if (addr == FDT_ADDR_T_NONE)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user