aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorRobert Jarzmik <robert.jarzmik@free.fr>2016-02-20 21:45:26 +0100
committerDavid S. Miller <davem@davemloft.net>2016-02-21 22:40:49 -0500
commitb5a099c67a1c36b91356624ce86eb3f9f48a82c7 (patch)
treecfca47ec7cff02a5c34388b3fd82717a2fe8d760 /security
parentfmvj18x_cs: fix incorrect indexing of dev->dev_addr[] when copying the MAC address (diff)
downloadlinux-dev-b5a099c67a1c36b91356624ce86eb3f9f48a82c7.tar.xz
linux-dev-b5a099c67a1c36b91356624ce86eb3f9f48a82c7.zip
net: ethernet: davicom: fix devicetree irq resource
The dm9000 driver doesn't work in at least one device-tree configuration, spitting an error message on irq resource : [    1.062495] dm9000 8000000.ethernet: insufficient resources [    1.068439] dm9000 8000000.ethernet: not found (-2). [    1.073451] dm9000: probe of 8000000.ethernet failed with error -2 The reason behind is that the interrupt might be provided by a gpio controller, not probed when dm9000 is probed, and needing the probe deferral mechanism to apply. Currently, the interrupt is directly taken from resources. This patch changes this to use the more generic platform_get_irq(), which handles the deferral. Moreover, since commit Fixes: 7085a7401ba5 ("drivers: platform: parse IRQ flags from resources"), the interrupt trigger flags are honored in platform_get_irq(), so remove the needless code in dm9000. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Acked-by: Marcel Ziswiler <marcel@ziswiler.com> Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Tested-by: Sergei Ianovich <ynvich@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions