Commit 84cec844 authored by Alex Elder's avatar Alex Elder Committed by David S. Miller

net: ipa: rename a phandle variable

When "W=2" is supplied to the build command, we get a warning about
shadowing a global declaration (of a typedef) for a variable defined
in ipa_probe().  Rename the variable to get rid of the warning.
Signed-off-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 993cac15
...@@ -723,8 +723,8 @@ static int ipa_probe(struct platform_device *pdev) ...@@ -723,8 +723,8 @@ static int ipa_probe(struct platform_device *pdev)
bool modem_alloc; bool modem_alloc;
bool modem_init; bool modem_init;
struct ipa *ipa; struct ipa *ipa;
phandle phandle;
bool prefetch; bool prefetch;
phandle ph;
int ret; int ret;
ipa_validate_build(); ipa_validate_build();
...@@ -736,13 +736,13 @@ static int ipa_probe(struct platform_device *pdev) ...@@ -736,13 +736,13 @@ static int ipa_probe(struct platform_device *pdev)
return -EPROBE_DEFER; return -EPROBE_DEFER;
/* We rely on remoteproc to tell us about modem state changes */ /* We rely on remoteproc to tell us about modem state changes */
phandle = of_property_read_phandle(dev->of_node, "modem-remoteproc"); ph = of_property_read_phandle(dev->of_node, "modem-remoteproc");
if (!phandle) { if (!ph) {
dev_err(dev, "DT missing \"modem-remoteproc\" property\n"); dev_err(dev, "DT missing \"modem-remoteproc\" property\n");
return -EINVAL; return -EINVAL;
} }
rproc = rproc_get_by_phandle(phandle); rproc = rproc_get_by_phandle(ph);
if (!rproc) if (!rproc)
return -EPROBE_DEFER; return -EPROBE_DEFER;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment