diff options
| author | Sergey Shtylyov <[email protected]> | 2021-05-18 23:38:54 +0300 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2021-05-19 15:54:42 -0600 |
| commit | bfc1f378c8953e68ccdbfe0a8c20748427488b80 (patch) | |
| tree | 6ef313bd20be47d697e5ad5a0fb37799fdabcaa2 /tools/perf/scripts/python/bin | |
| parent | 2d3a62fbae8e5badc2342388f65ab2191c209cc0 (diff) | |
pata_octeon_cf: avoid WARN_ON() in ata_host_activate()
Iff platform_get_irq() fails (or returns IRQ0) and thus the polling mode
has to be used, ata_host_activate() hits the WARN_ON() due to 'irq_handler'
parameter being non-NULL if the polling mode is selected. Let's only set
the pointer to the driver's IRQ handler if platform_get_irq() returns a
valid IRQ # -- this should avoid the unnecessary WARN_ON()...
Fixes: 43f01da0f279 ("MIPS/OCTEON/ata: Convert pata_octeon_cf.c to use device tree.")
Signed-off-by: Sergey Shtylyov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions