diff options
author | Michael Grzeschik <m.grzeschik@pengutronix.de> | 2015-04-22 11:47:43 +0200 |
---|---|---|
committer | Michael Grzeschik <m.grzeschik@pengutronix.de> | 2015-09-23 11:23:45 +0200 |
commit | 834c952a1177721f2c0e779e3ca856b79ce27310 (patch) | |
tree | e03a38d944c79462a853e745214b56ad5dcafe75 /drivers/net/arcnet | |
parent | abc23ec927f217f1cc698e36d300ef80e935e805 (diff) | |
download | lwn-834c952a1177721f2c0e779e3ca856b79ce27310.tar.gz lwn-834c952a1177721f2c0e779e3ca856b79ce27310.zip |
arcnet: capmode: remove extra function
This patch cleans the capmode protocol module. It removes the obsolete
function arcnet_cap_init and replaces printk with pr_info.
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Diffstat (limited to 'drivers/net/arcnet')
-rw-r--r-- | drivers/net/arcnet/capmode.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/net/arcnet/capmode.c b/drivers/net/arcnet/capmode.c index 8297e004dc26..2056878fb087 100644 --- a/drivers/net/arcnet/capmode.c +++ b/drivers/net/arcnet/capmode.c @@ -238,10 +238,12 @@ static struct ArcProto capmode_proto = { .ack_tx = ack_tx }; -static void arcnet_cap_init(void) +static int __init capmode_module_init(void) { int count; + pr_info("cap mode (`c') encapsulation support loaded\n"); + for (count = 1; count <= 8; count++) if (arc_proto_map[count] == arc_proto_default) arc_proto_map[count] = &capmode_proto; @@ -252,12 +254,7 @@ static void arcnet_cap_init(void) arc_proto_default = &capmode_proto; arc_raw_proto = &capmode_proto; -} -static int __init capmode_module_init(void) -{ - pr_info("%s\n", "cap mode (`c') encapsulation support loaded"); - arcnet_cap_init(); return 0; } |