aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/micrel/ks8851.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/micrel/ks8851.c')
-rw-r--r--drivers/net/ethernet/micrel/ks8851.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ethernet/micrel/ks8851.c b/drivers/net/ethernet/micrel/ks8851.c
index 134c4d07936b..4b551feae4c5 100644
--- a/drivers/net/ethernet/micrel/ks8851.c
+++ b/drivers/net/ethernet/micrel/ks8851.c
@@ -1419,10 +1419,8 @@ static int __devinit ks8851_probe(struct spi_device *spi)
1419 int ret; 1419 int ret;
1420 1420
1421 ndev = alloc_etherdev(sizeof(struct ks8851_net)); 1421 ndev = alloc_etherdev(sizeof(struct ks8851_net));
1422 if (!ndev) { 1422 if (!ndev)
1423 dev_err(&spi->dev, "failed to alloc ethernet device\n");
1424 return -ENOMEM; 1423 return -ENOMEM;
1425 }
1426 1424
1427 spi->bits_per_word = 8; 1425 spi->bits_per_word = 8;
1428 1426