diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2017-08-27 15:14:49 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2017-08-27 15:14:49 +0200 |
commit | 8ce0436789b006622fcb6baea0c29b99385612dd (patch) | |
tree | 9da56689f451c3644aa044d13e58caf978cd6f2e /drivers/net/ethernet/marvell/mv643xx_eth.c | |
parent | ed1094012ae82798de33bad0ba1cc5f19a005e68 (diff) | |
parent | fabf08a0cd63ce39287646ceea10ac34781418f4 (diff) | |
download | linux-8ce0436789b006622fcb6baea0c29b99385612dd.tar.gz linux-8ce0436789b006622fcb6baea0c29b99385612dd.tar.bz2 linux-8ce0436789b006622fcb6baea0c29b99385612dd.zip |
Merge branch 'i2c-mux/for-next' of https://github.com/peda-r/i2c-mux into i2c/for-4.14
Diffstat (limited to 'drivers/net/ethernet/marvell/mv643xx_eth.c')
-rw-r--r-- | drivers/net/ethernet/marvell/mv643xx_eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/marvell/mv643xx_eth.c b/drivers/net/ethernet/marvell/mv643xx_eth.c index 5794d98d946f..9c94ea9b2b80 100644 --- a/drivers/net/ethernet/marvell/mv643xx_eth.c +++ b/drivers/net/ethernet/marvell/mv643xx_eth.c @@ -2734,7 +2734,7 @@ static int mv643xx_eth_shared_of_add_port(struct platform_device *pdev, ppd.shared = pdev; memset(&res, 0, sizeof(res)); - if (!of_irq_to_resource(pnp, 0, &res)) { + if (of_irq_to_resource(pnp, 0, &res) <= 0) { dev_err(&pdev->dev, "missing interrupt on %s\n", pnp->name); return -EINVAL; } |