Re: [PATCH v1 1/7] enc28j60: Use device_get_mac_address()

2019-03-01 Thread Joe Perches
On Fri, 2019-03-01 at 21:46 -0800, David Miller wrote: > From: Andy Shevchenko > Date: Thu, 28 Feb 2019 23:34:29 +0300 > > > @@ -1554,7 +1554,7 @@ static int enc28j60_probe(struct spi_device *spi) > > { > > struct net_device *dev; > > struct enc28j60_net *priv; > > - const void *

Re: [PATCH v1 1/7] enc28j60: Use device_get_mac_address()

2019-03-01 Thread David Miller
From: Andy Shevchenko Date: Thu, 28 Feb 2019 23:34:29 +0300 > @@ -1554,7 +1554,7 @@ static int enc28j60_probe(struct spi_device *spi) > { > struct net_device *dev; > struct enc28j60_net *priv; > - const void *macaddr; > + unsigned char macaddr[ETH_ALEN]; > int ret = 0;

[PATCH v1 1/7] enc28j60: Use device_get_mac_address()

2019-02-28 Thread Andy Shevchenko
Replace the DT-specific of_get_mac_address() function with device_get_mac_address, which works on both DT and ACPI platforms. This change makes it easier to add ACPI support. Signed-off-by: Andy Shevchenko --- drivers/net/ethernet/microchip/enc28j60.c | 7 +++ 1 file changed, 3 insertions(+