treewide: convert devfdt_get_addr() to dev_read_addr()
When you enable CONFIG_OF_LIVE, you will end up with a lot of conversions. To generate this commit, I used coccinelle excluding drivers/core/, include/dm/, and test/ The semantic patch that makes this change is as follows: <smpl> @@ expression dev; @@ -devfdt_get_addr(dev) +dev_read_addr(dev) </smpl> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
committed by
Simon Glass
parent
6f25e274da
commit
60e7fa8b3b
@@ -95,7 +95,7 @@ static int ehci_atmel_probe(struct udevice *dev)
|
||||
/*
|
||||
* Get the base address for EHCI controller from the device node
|
||||
*/
|
||||
hcd_base = devfdt_get_addr(dev);
|
||||
hcd_base = dev_read_addr(dev);
|
||||
if (hcd_base == FDT_ADDR_T_NONE) {
|
||||
debug("Can't get the EHCI register base address\n");
|
||||
return -ENXIO;
|
||||
|
||||
@@ -53,7 +53,7 @@ static int ehci_usb_ofdata_to_platdata(struct udevice *dev)
|
||||
/*
|
||||
* Get the base address for XHCI controller from the device node
|
||||
*/
|
||||
plat->hcd_base = devfdt_get_addr(dev);
|
||||
plat->hcd_base = dev_read_addr(dev);
|
||||
if (plat->hcd_base == FDT_ADDR_T_NONE) {
|
||||
debug("Can't get the XHCI register base address\n");
|
||||
return -ENXIO;
|
||||
|
||||
@@ -105,7 +105,7 @@ static int ehci_fsl_probe(struct udevice *dev)
|
||||
/*
|
||||
* Get the base address for EHCI controller from the device node
|
||||
*/
|
||||
priv->hcd_base = devfdt_get_addr(dev);
|
||||
priv->hcd_base = dev_read_addr(dev);
|
||||
if (priv->hcd_base == FDT_ADDR_T_NONE) {
|
||||
debug("Can't get the EHCI register base address\n");
|
||||
return -ENXIO;
|
||||
|
||||
@@ -109,7 +109,7 @@ static int ehci_mvebu_probe(struct udevice *dev)
|
||||
/*
|
||||
* Get the base address for EHCI controller from the device node
|
||||
*/
|
||||
priv->hcd_base = devfdt_get_addr(dev);
|
||||
priv->hcd_base = dev_read_addr(dev);
|
||||
if (priv->hcd_base == FDT_ADDR_T_NONE) {
|
||||
debug("Can't get the EHCI register base address\n");
|
||||
return -ENXIO;
|
||||
|
||||
@@ -62,7 +62,7 @@ static int xhci_usb_ofdata_to_platdata(struct udevice *dev)
|
||||
/*
|
||||
* Get the base address for XHCI controller from the device node
|
||||
*/
|
||||
plat->hcd_base = devfdt_get_addr(dev);
|
||||
plat->hcd_base = dev_read_addr(dev);
|
||||
if (plat->hcd_base == FDT_ADDR_T_NONE) {
|
||||
debug("Can't get the XHCI register base address\n");
|
||||
return -ENXIO;
|
||||
|
||||
@@ -120,7 +120,7 @@ static int xhci_fsl_probe(struct udevice *dev)
|
||||
/*
|
||||
* Get the base address for XHCI controller from the device node
|
||||
*/
|
||||
priv->hcd_base = devfdt_get_addr(dev);
|
||||
priv->hcd_base = dev_read_addr(dev);
|
||||
if (priv->hcd_base == FDT_ADDR_T_NONE) {
|
||||
debug("Can't get the XHCI register base address\n");
|
||||
return -ENXIO;
|
||||
|
||||
@@ -72,7 +72,7 @@ static int xhci_usb_ofdata_to_platdata(struct udevice *dev)
|
||||
/*
|
||||
* Get the base address for XHCI controller from the device node
|
||||
*/
|
||||
plat->hcd_base = devfdt_get_addr(dev);
|
||||
plat->hcd_base = dev_read_addr(dev);
|
||||
if (plat->hcd_base == FDT_ADDR_T_NONE) {
|
||||
debug("Can't get the XHCI register base address\n");
|
||||
return -ENXIO;
|
||||
|
||||
@@ -136,7 +136,7 @@ static int xhci_rcar_ofdata_to_platdata(struct udevice *dev)
|
||||
{
|
||||
struct rcar_xhci_platdata *plat = dev_get_platdata(dev);
|
||||
|
||||
plat->hcd_base = devfdt_get_addr(dev);
|
||||
plat->hcd_base = dev_read_addr(dev);
|
||||
if (plat->hcd_base == FDT_ADDR_T_NONE) {
|
||||
debug("Can't get the XHCI register base address\n");
|
||||
return -ENXIO;
|
||||
|
||||
Reference in New Issue
Block a user