]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net: stmmac: remove unnecessary pci_enable_msi() call
authorWong Vee Khee <vee.khee.wong@linux.intel.com>
Thu, 1 Apr 2021 06:06:28 +0000 (14:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Apr 2021 22:49:23 +0000 (15:49 -0700)
The commit d2a029bde37b ("stmmac: pci: add MSI support for Intel Quark
X1000") introduced a pci_enable_msi() call in stmmac_pci.c.

With the commit 58da0cfa6cf1 ("net: stmmac: create dwmac-intel.c to
contain all Intel platform"), Intel Quark platform related codes
have been moved to the newly created driver.

Removing this unnecessary pci_enable_msi() call as there are no other
devices that uses stmmac-pci and need MSI to be enabled.

Signed-off-by: Wong Vee Khee <vee.khee.wong@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c

index 272cb47af9f2eac5a6c0ad36c5e174c0411107f4..95e0e4d6f74d23b960eab17d59f318a8bebf7ed2 100644 (file)
@@ -198,8 +198,6 @@ static int stmmac_pci_probe(struct pci_dev *pdev,
        if (ret)
                return ret;
 
-       pci_enable_msi(pdev);
-
        memset(&res, 0, sizeof(res));
        res.addr = pcim_iomap_table(pdev)[i];
        res.wol_irq = pdev->irq;