]> git.baikalelectronics.ru Git - kernel.git/commit
device property: Add iomap to fwnode operations
authorSakari Ailus <sakari.ailus@linux.intel.com>
Thu, 31 Mar 2022 12:54:49 +0000 (15:54 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 5 Apr 2022 13:30:47 +0000 (15:30 +0200)
commit05be050436a71f29001ba51f4b19620f1f08e0aa
treee4d79df7a341cd7e2bae877b3c70084d40979d25
parent7e5de436b3e0f4a53dced3de4a05054649918a6c
device property: Add iomap to fwnode operations

Add iomap() fwnode operation to implement fwnode_iomap() through fwnode
operations, moving the code in fwnode_iomap() to OF framework.

Note that the IS_ENABLED(CONFIG_OF_ADDRESS) && is_of_node(fwnode) check is
needed for Sparc that has its own implementation of of_iomap anyway. Let
the pre-compiler to handle that check.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/property.c
drivers/of/property.c
include/linux/fwnode.h