diff options
author | Jiasheng Jiang <jiasheng@iscas.ac.cn> | 2023-06-01 05:30:02 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-06-02 10:56:23 +0200 |
commit | f93b30e50a81a16cefa262b68bde5c4096ea9235 (patch) | |
tree | b6687a6535a8f7292e6596a2ca96300a786e93c2 /drivers/net/ethernet/broadcom/bcmsysport.c | |
parent | net/ipv4: ping_group_range: allow GID from 2147483648 to 4294967294 (diff) | |
download | linux-f93b30e50a81a16cefa262b68bde5c4096ea9235.tar.xz linux-f93b30e50a81a16cefa262b68bde5c4096ea9235.zip |
net: systemport: Replace platform_get_irq with platform_get_irq_optional
Replace platform_get_irq with platform_get_irq_optional because wol_irq
is optional.
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bcmsysport.c')
-rw-r--r-- | drivers/net/ethernet/broadcom/bcmsysport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/broadcom/bcmsysport.c b/drivers/net/ethernet/broadcom/bcmsysport.c index 38d0cdaf22a5..bf1611cce974 100644 --- a/drivers/net/ethernet/broadcom/bcmsysport.c +++ b/drivers/net/ethernet/broadcom/bcmsysport.c @@ -2531,9 +2531,9 @@ static int bcm_sysport_probe(struct platform_device *pdev) priv->irq0 = platform_get_irq(pdev, 0); if (!priv->is_lite) { priv->irq1 = platform_get_irq(pdev, 1); - priv->wol_irq = platform_get_irq(pdev, 2); + priv->wol_irq = platform_get_irq_optional(pdev, 2); } else { - priv->wol_irq = platform_get_irq(pdev, 1); + priv->wol_irq = platform_get_irq_optional(pdev, 1); } if (priv->irq0 <= 0 || (priv->irq1 <= 0 && !priv->is_lite)) { ret = -EINVAL; |