diff options
Diffstat (limited to 'drivers/net/ethernet/ti/davinci_mdio.c')
-rw-r--r-- | drivers/net/ethernet/ti/davinci_mdio.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ethernet/ti/davinci_mdio.c b/drivers/net/ethernet/ti/davinci_mdio.c index cca25509b039..d04a622b08d4 100644 --- a/drivers/net/ethernet/ti/davinci_mdio.c +++ b/drivers/net/ethernet/ti/davinci_mdio.c | |||
@@ -320,10 +320,8 @@ static int davinci_mdio_probe(struct platform_device *pdev) | |||
320 | int ret, addr; | 320 | int ret, addr; |
321 | 321 | ||
322 | data = kzalloc(sizeof(*data), GFP_KERNEL); | 322 | data = kzalloc(sizeof(*data), GFP_KERNEL); |
323 | if (!data) { | 323 | if (!data) |
324 | dev_err(dev, "failed to alloc device data\n"); | ||
325 | return -ENOMEM; | 324 | return -ENOMEM; |
326 | } | ||
327 | 325 | ||
328 | data->bus = mdiobus_alloc(); | 326 | data->bus = mdiobus_alloc(); |
329 | if (!data->bus) { | 327 | if (!data->bus) { |