summaryrefslogtreecommitdiffstats
path: root/net/sched/sch_hhf.c
diff options
context:
space:
mode:
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>2014-04-30 13:28:51 -0300
committerDavid S. Miller <davem@davemloft.net>2014-05-02 16:18:54 -0400
commit39076b047b160821110cb4deed13424ddfdf8d00 (patch)
treeaabbab28ca9bfe23bcee95efefab4717d2d3fd87 /net/sched/sch_hhf.c
parente46e08b843d8ff8c46ad8d7b0b95acaacc4e6195 (diff)
downloadop-kernel-dev-39076b047b160821110cb4deed13424ddfdf8d00.zip
op-kernel-dev-39076b047b160821110cb4deed13424ddfdf8d00.tar.gz
net: mvmdio: Check for a valid interrupt instead of an error
The following commit: commit 9ec36cafe43bf835f8f29273597a5b0cbc8267ef Author: Rob Herring <robh@kernel.org> Date: Wed Apr 23 17:57:41 2014 -0500 of/irq: do irq resolution in platform_get_irq changed platform_get_irq() which now returns EINVAL and EPROBE_DEFER, in addition to ENXIO. If there's no interrupt for mvmdio, platform_get_irq() returns EINVAL, but we currently check only for ENXIO. Fix this by looking for a positive integer, which is the proper way of validating a virtual interrupt number. While at it, add a proper handling for the deferral probe case. Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Reviewed-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_hhf.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud