Skip to content

Commit

Permalink
net/enc28j60: section fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Brownell authored and Jeff Garzik committed Jun 18, 2008
1 parent a3b4fce commit 6fd6588
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/net/enc28j60.c
Original file line number Diff line number Diff line change
Expand Up @@ -1556,7 +1556,7 @@ static int __devinit enc28j60_probe(struct spi_device *spi)
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);

Expand All @@ -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),
};
Expand Down

0 comments on commit 6fd6588

Please sign in to comment.