]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net: smc91x: propagate irq return code
authorRobert Jarzmik <robert.jarzmik@free.fr>
Sat, 6 Feb 2016 21:23:20 +0000 (22:23 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Feb 2016 20:02:23 +0000 (15:02 -0500)
commitbd59cfc51df7ddc88755a60a1293cee55f5d0a12
tree51d77ec9c8acb74f788704062f8c0be4be808cab
parentbfb3a9df6106b5384773734896bf0034f5790243
net: smc91x: propagate irq return code

The smc91x driver doesn't honor the probe deferral mechanism when the
interrupt source is not yet available, such as one provided by a gpio
controller not probed.

Fix this by propagating the platform_get_irq() error code as the probe
return value.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/smsc/smc91x.c