https://github.com/torvalds/linux
Revision e1f550dc44a4d535da4e25ada1b0eaf8f3417929 authored by Chris Packham on 11 March 2020, 20:05:46 UTC, committed by David S. Miller on 12 March 2020, 07:03:30 UTC
Per the dt-binding the interrupt is optional so use
platform_get_irq_optional() instead of platform_get_irq(). Since
commit 7723f4c5ecdb ("driver core: platform: Add an error message to
platform_get_irq*()") platform_get_irq() produces an error message

  orion-mdio f1072004.mdio: IRQ index 0 not found

which is perfectly normal if one hasn't specified the optional property
in the device tree.

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 012fc74
History
Tip revision: e1f550dc44a4d535da4e25ada1b0eaf8f3417929 authored by Chris Packham on 11 March 2020, 20:05:46 UTC
net: mvmdio: avoid error message for optional IRQ
Tip revision: e1f550d
File Mode Size
include
.gitignore -rw-r--r-- 54 bytes
Kconfig -rw-r--r-- 7.1 KB
Makefile -rw-r--r-- 2.9 KB
default_cpio_list -rw-r--r-- 153 bytes
gen_init_cpio.c -rw-r--r-- 12.8 KB
gen_initramfs.sh -rwxr-xr-x 5.7 KB
initramfs_data.S -rw-r--r-- 1.2 KB

back to top