aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/drivers/mcast_user.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/drivers/mcast_user.c')
-rw-r--r--arch/um/drivers/mcast_user.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/um/drivers/mcast_user.c b/arch/um/drivers/mcast_user.c
index cfaa2cc43139..0f64d9467286 100644
--- a/arch/um/drivers/mcast_user.c
+++ b/arch/um/drivers/mcast_user.c
@@ -42,12 +42,13 @@ static struct sockaddr_in *new_addr(char *addr, unsigned short port)
42 return sin; 42 return sin;
43} 43}
44 44
45static void mcast_user_init(void *data, void *dev) 45static int mcast_user_init(void *data, void *dev)
46{ 46{
47 struct mcast_data *pri = data; 47 struct mcast_data *pri = data;
48 48
49 pri->mcast_addr = new_addr(pri->addr, pri->port); 49 pri->mcast_addr = new_addr(pri->addr, pri->port);
50 pri->dev = dev; 50 pri->dev = dev;
51 return 0;
51} 52}
52 53
53static void mcast_remove(void *data) 54static void mcast_remove(void *data)