]> git.baikalelectronics.ru Git - kernel.git/commit
net/macb: use dev_*() when netdev is not yet registered
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 24 Jul 2015 18:24:01 +0000 (21:24 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jul 2015 08:10:29 +0000 (01:10 -0700)
commit06bf22230cc9ea60f14eb9e2788b82675196d8aa
tree6bc45ed3070d9b0921b6c9fe3c20ffe87033fac5
parent7b27250bf83f5afb97c74b36f67d7028cbbff1bf
net/macb: use dev_*() when netdev is not yet registered

To avoid messages like

macb macb.0 (unnamed net_device) (uninitialized): Cadence caps 0x00000000
macb macb.0 (unnamed net_device) (uninitialized): invalid hw address, using random

let's use dev_*() macros.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.c