generic: fix compile-error for non-mtd platforms
Fixes commit cd39aba402 ("generic: write back netdev MAC-address to device-tree")
Signed-off-by: David Bauer <mail@david-bauer.net>
This commit is contained in:
@@ -65,7 +65,7 @@ Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
|
||||
{
|
||||
#ifdef CONFIG_MTD
|
||||
struct platform_device *pdev = of_find_device_by_node(np);
|
||||
@@ -146,28 +151,54 @@ static const void *of_get_mac_address_mt
|
||||
@@ -147,28 +152,54 @@ static const void *of_get_mac_address_mt
|
||||
* If a mtd-mac-address property exists, try to fetch the MAC address from the
|
||||
* specified mtd device.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user