]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net: stmmac: Handle different error codes from platform_get_irq_byname
authorChen-Yu Tsai <wens@csie.org>
Thu, 29 May 2014 14:31:40 +0000 (22:31 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Jun 2014 21:04:06 +0000 (14:04 -0700)
commitd7ec858413612ebb53c539541d6a0c7927db0bcd
treed68db9879024e6bc4d97a3e2586629415c9e684b
parent31595de219e8a1a2ed7aeccbe4f18e44f2d2db00
net: stmmac: Handle different error codes from platform_get_irq_byname

The following patch moved device tree interrupt resolution into
platform_get_irq_byname:

  ad69674 of/irq: do irq resolution in platform_get_irq_byname()

As a result, the function no longer only return -ENXIO on error.
This breaks DT based probing of stmmac, as seen in test runs of
linux-next next-20140526 cubie2-sunxi_defconfig:

  http://lists.linaro.org/pipermail/kernel-build-reports/2014-May/003659.html

This patch makes the stmmac_platform probe function properly handle
error codes, such as returning for deferred probing, and other codes
returned by of_irq_get_by_name.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c