dm: Use dev_get_addr() where possible
authorSimon Glass <sjg@chromium.org>
Tue, 11 Aug 2015 14:33:29 +0000 (08:33 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 10:19:15 +0000 (12:19 +0200)
commitf0844820609e58eefc122700722d7c8c9f0cbe84
tree4a87efff88199bd820b563a453bba0f6ba406c04
parent682872b8e93bd4b68d3dc93bc738800f9f545ae8
dm: Use dev_get_addr() where possible

This is a convenient way for a driver to get the hardware address of a
device, when regmap or syscon are not being used. Change existing callers
to use it as an example to others.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
20 files changed:
drivers/core/device.c
drivers/gpio/s5p_gpio.c
drivers/gpio/sunxi_gpio.c
drivers/gpio/tegra_gpio.c
drivers/i2c/s3c24x0_i2c.c
drivers/i2c/tegra_i2c.c
drivers/serial/ns16550.c
drivers/serial/serial_arc.c
drivers/serial/serial_pl01x.c
drivers/serial/serial_s5p.c
drivers/spi/designware_spi.c
drivers/spi/exynos_spi.c
drivers/spi/fsl_dspi.c
drivers/spi/tegra114_spi.c
drivers/spi/tegra20_sflash.c
drivers/spi/tegra20_slink.c
drivers/spi/zynq_spi.c
drivers/usb/host/ehci-tegra.c
drivers/usb/host/xhci-exynos5.c
drivers/video/tegra124/dp.c