mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-03 15:52:00 +00:00
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>
This commit is contained in:
parent
abc23ec927
commit
834c952a11
@ -238,10 +238,12 @@ static struct ArcProto capmode_proto = {
|
|||||||
.ack_tx = ack_tx
|
.ack_tx = ack_tx
|
||||||
};
|
};
|
||||||
|
|
||||||
static void arcnet_cap_init(void)
|
static int __init capmode_module_init(void)
|
||||||
{
|
{
|
||||||
int count;
|
int count;
|
||||||
|
|
||||||
|
pr_info("cap mode (`c') encapsulation support loaded\n");
|
||||||
|
|
||||||
for (count = 1; count <= 8; count++)
|
for (count = 1; count <= 8; count++)
|
||||||
if (arc_proto_map[count] == arc_proto_default)
|
if (arc_proto_map[count] == arc_proto_default)
|
||||||
arc_proto_map[count] = &capmode_proto;
|
arc_proto_map[count] = &capmode_proto;
|
||||||
@ -252,12 +254,7 @@ static void arcnet_cap_init(void)
|
|||||||
|
|
||||||
arc_proto_default = &capmode_proto;
|
arc_proto_default = &capmode_proto;
|
||||||
arc_raw_proto = &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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user