summaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/bcm_sf2.c
diff options
context:
space:
mode:
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>2016-04-17 13:23:55 -0400
committerDavid S. Miller <davem@davemloft.net>2016-04-17 18:54:14 -0400
commit0209d144e3097fee1fe5d38532e6f0919c80d1ea (patch)
tree8be0d13a7ca618200f5d096f7c05e208ea377d17 /drivers/net/dsa/bcm_sf2.c
parentefde611b0afa47e64f2a329f4430830b91d77ea2 (diff)
downloadlinux-0209d144e3097fee1fe5d38532e6f0919c80d1ea.tar.gz
linux-0209d144e3097fee1fe5d38532e6f0919c80d1ea.tar.bz2
linux-0209d144e3097fee1fe5d38532e6f0919c80d1ea.zip
net: dsa: constify probed name
Change the dsa_switch_driver.probe function to return a const char *. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/bcm_sf2.c')
-rw-r--r--drivers/net/dsa/bcm_sf2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/dsa/bcm_sf2.c b/drivers/net/dsa/bcm_sf2.c
index 7a5f0ef46bd6..448deb59b9a4 100644
--- a/drivers/net/dsa/bcm_sf2.c
+++ b/drivers/net/dsa/bcm_sf2.c
@@ -135,9 +135,9 @@ static int bcm_sf2_sw_get_sset_count(struct dsa_switch *ds)
return BCM_SF2_STATS_SIZE;
}
-static char *bcm_sf2_sw_drv_probe(struct device *dsa_dev,
- struct device *host_dev,
- int sw_addr, void **_priv)
+static const char *bcm_sf2_sw_drv_probe(struct device *dsa_dev,
+ struct device *host_dev, int sw_addr,
+ void **_priv)
{
struct bcm_sf2_priv *priv;