net/enc28j60: section fix
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>
This commit is contained in:
committed by
Jeff Garzik
parent
a3b4fcedee
commit
6fd65882f5
@@ -1556,7 +1556,7 @@ error_alloc:
|
|||||||
return ret;
|
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);
|
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 = {
|
static struct spi_driver enc28j60_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = DRV_NAME,
|
.name = DRV_NAME,
|
||||||
.bus = &spi_bus_type,
|
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
},
|
},
|
||||||
.probe = enc28j60_probe,
|
.probe = enc28j60_probe,
|
||||||
.remove = __devexit_p(enc28j60_remove),
|
.remove = __devexit_p(enc28j60_remove),
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user