summaryrefslogtreecommitdiff
path: root/fs/reiserfs
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2021-04-13 14:35:02 -0700
committerDavid S. Miller <davem@davemloft.net>2021-04-13 14:35:02 -0700
commitaffb05d9109cbde23862691f7c8f0db4f8015c4e (patch)
treef557abaef6b3106f623c47cdf0285fb87acaeb8d /fs/reiserfs
parent40b5d2f15c091fa9c854acde91ad2acb504027d7 (diff)
parentf10843e04a075202dbb39dfcee047e3a2fdf5a8d (diff)
Merge branch 'non-platform-devices-of_get_mac_address'
Michael Walle says: ==================== of: net: support non-platform devices in of_get_mac_address() of_get_mac_address() is commonly used to fetch the MAC address from the device tree. It also supports reading it from a NVMEM provider. But the latter is only possible for platform devices, because only platform devices are searched for a matching device node. Add a second method to fetch the NVMEM cell by a device tree node instead of a "struct device". Moreover, the NVMEM subsystem will return dynamically allocated data which has to be freed after use. Currently, this is handled by allocating a device resource manged buffer to store the MAC address. of_get_mac_address() then returns a pointer to this buffer. Without a device, this trick is not possible anymore. Thus, change the of_get_mac_address() API to have the caller supply a buffer. It was considered to use the network device to attach the buffer to, but then the order matters and netdev_register() has to be called before of_get_mac_address(). No driver does it this way. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/reiserfs')
0 files changed, 0 insertions, 0 deletions