aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/phy
diff options
context:
space:
mode:
authorBaoyou Xie <baoyou.xie@linaro.org>2016-08-31 17:05:19 +0800
committerKishon Vijay Abraham I <kishon@ti.com>2016-09-10 16:48:35 +0530
commit713b3ce9a3afba269590b8630db8abd8e139f873 (patch)
tree89eac2c23ceb6c8f130afe1573587019c6f91ffe /drivers/phy
parentphy: tegra: add missing header dependencies (diff)
downloadlinux-dev-713b3ce9a3afba269590b8630db8abd8e139f873.tar.xz
linux-dev-713b3ce9a3afba269590b8630db8abd8e139f873.zip
phy: tegra: mark tegra_xusb_lane_lookup_function() static
We get 1 warning when building kernel with W=1: drivers/phy/tegra/xusb.c:104:5: warning: no previous prototype for 'tegra_xusb_lane_lookup_function' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made static. So this patch marks it 'static'. Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'drivers/phy')
-rw-r--r--drivers/phy/tegra/xusb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/phy/tegra/xusb.c b/drivers/phy/tegra/xusb.c
index dbd2a4db1078..873424ab0e32 100644
--- a/drivers/phy/tegra/xusb.c
+++ b/drivers/phy/tegra/xusb.c
@@ -102,7 +102,8 @@ tegra_xusb_pad_find_phy_node(struct tegra_xusb_pad *pad, unsigned int index)
return of_find_node_by_name(np, pad->soc->lanes[index].name);
}
-int tegra_xusb_lane_lookup_function(struct tegra_xusb_lane *lane,
+static int
+tegra_xusb_lane_lookup_function(struct tegra_xusb_lane *lane,
const char *function)
{
unsigned int i;