diff options
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c')
| -rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c | 11 | 
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c index 023b7c29cb2..29160892484 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c @@ -26,9 +26,9 @@  #include <linux/pci.h>  #include "stmmac.h" -struct plat_stmmacenet_data plat_dat; -struct stmmac_mdio_bus_data mdio_data; -struct stmmac_dma_cfg dma_cfg; +static struct plat_stmmacenet_data plat_dat; +static struct stmmac_mdio_bus_data mdio_data; +static struct stmmac_dma_cfg dma_cfg;  static void stmmac_default_data(void)  { @@ -100,9 +100,9 @@ static int stmmac_pci_probe(struct pci_dev *pdev,  	stmmac_default_data();  	priv = stmmac_dvr_probe(&(pdev->dev), &plat_dat, addr); -	if (!priv) { +	if (IS_ERR(priv)) {  		pr_err("%s: main driver probe failed", __func__); -		ret = -ENODEV; +		ret = PTR_ERR(priv);  		goto err_out;  	}  	priv->dev->irq = pdev->irq; @@ -138,7 +138,6 @@ static void stmmac_pci_remove(struct pci_dev *pdev)  	stmmac_dvr_remove(ndev); -	pci_set_drvdata(pdev, NULL);  	pci_iounmap(pdev, priv->ioaddr);  	pci_release_regions(pdev);  	pci_disable_device(pdev);  | 
