phy: ti: am654-serdes: Make serdes_am654_xlate() static
authorYueHaibing <yuehaibing@huawei.com>
Thu, 18 Apr 2019 13:36:33 +0000 (21:36 +0800)
committerKishon Vijay Abraham I <kishon@ti.com>
Fri, 21 Jun 2019 05:21:14 +0000 (10:51 +0530)
Fix sparse warning:

drivers/phy/ti/phy-am654-serdes.c:250:12: warning:
 symbol 'serdes_am654_xlate' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/ti/phy-am654-serdes.c

index d3769200cb9b7bf1e8298666fe0fb1e7f49bec39..f8edd0840fa2b43180fae7729ad4dae7eae6988b 100644 (file)
@@ -247,8 +247,8 @@ static void serdes_am654_release(struct phy *x)
        mux_control_deselect(phy->control);
 }
 
-struct phy *serdes_am654_xlate(struct device *dev, struct of_phandle_args
-                                *args)
+static struct phy *serdes_am654_xlate(struct device *dev,
+                                     struct of_phandle_args *args)
 {
        struct serdes_am654 *am654_phy;
        struct phy *phy;