natsemi: sonic: stop calling netdev_boot_setup_check
authorArnd Bergmann <arnd@arndb.de>
Tue, 3 Aug 2021 11:40:39 +0000 (13:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Aug 2021 12:05:25 +0000 (13:05 +0100)
The data from the kernel command line is no longer used since the
probe function gets it from the platform device resources instead.

The jazz version was changed to be like this in 2007, the xtensa
version apparently copied the code from there.

Fixes: ed9f0e0bf3ce ("remove setup of platform device from jazzsonic.c")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/natsemi/jazzsonic.c
drivers/net/ethernet/natsemi/xtsonic.c

index ce3eca5d152b9f8af85f112a39f84588a5468fc3..d74a80f010c51165b2fad0738eb79851f292ac45 100644 (file)
@@ -193,8 +193,6 @@ static int jazz_sonic_probe(struct platform_device *pdev)
        SET_NETDEV_DEV(dev, &pdev->dev);
        platform_set_drvdata(pdev, dev);
 
-       netdev_boot_setup_check(dev);
-
        dev->base_addr = res->start;
        dev->irq = platform_get_irq(pdev, 0);
        err = sonic_probe1(dev);
index 28d9e98db81a8bbd82a4fdd0d19c524a00b95332..ca4686094701c60eff5a9991990575257f1310ca 100644 (file)
@@ -215,7 +215,6 @@ int xtsonic_probe(struct platform_device *pdev)
        lp->device = &pdev->dev;
        platform_set_drvdata(pdev, dev);
        SET_NETDEV_DEV(dev, &pdev->dev);
-       netdev_boot_setup_check(dev);
 
        dev->base_addr = resmem->start;
        dev->irq = resirq->start;