]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
net/enc28j60: section fix
authorDavid Brownell <david-b@pacbell.net>
Fri, 13 Jun 2008 04:36:24 +0000 (21:36 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 18 Jun 2008 03:07:05 +0000 (23:07 -0400)
Minor bugfixes to the enc28j60 driver ... wrong section marking,
indentation, and bogus use of spi_bus_type.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Claudio Lanconelli <lanconelli.claudio@eptar.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/enc28j60.c

index 46a90e9ec56320e4eaca6d48ba21c6d463981ddc..0f1581cbd101077ad432b1aebed86cbd8f547636 100644 (file)
@@ -1556,7 +1556,7 @@ error_alloc:
        return ret;
 }
 
-static int enc28j60_remove(struct spi_device *spi)
+static int __devexit enc28j60_remove(struct spi_device *spi)
 {
        struct enc28j60_net *priv = dev_get_drvdata(&spi->dev);
 
@@ -1573,9 +1573,8 @@ static int enc28j60_remove(struct spi_device *spi)
 static struct spi_driver enc28j60_driver = {
        .driver = {
                   .name = DRV_NAME,
-                  .bus = &spi_bus_type,
                   .owner = THIS_MODULE,
-                  },
+        },
        .probe = enc28j60_probe,
        .remove = __devexit_p(enc28j60_remove),
 };