On Fri, Nov 26, 2021 at 2:10 AM Tang Bin <tangbin@xxxxxxxxxxxxxxxxxxxx> wrote:
In the function ptp_ixp_probe(), when get irq failedOK the intention is right but:
after executing platform_get_irq(), the negative value
returned will not be detected here. So fix error handling
in this place.
Fixes: 9055a2f591629 ("ixp4xx_eth: make ptp support a platform driver")
Signed-off-by: Tang Bin <tangbin@xxxxxxxxxxxxxxxxxxxx>
- !ixp_clock.master_irq || !ixp_clock.slave_irq)Keep disallowing 0. Because that is not a valid IRQ.
+ (ixp_clock.master_irq < 0) || (ixp_clock.slave_irq < 0))
... <= 0 ...