Skip to content

Commit b13bb2e

Browse files
lw-karodavem330
authored andcommitted
net/can: add module alias to can protocol drivers
Add appropriate MODULE_ALIAS() to facilitate autoloading of can protocol drivers Signed-off-by: Lothar Wassmann <LW@KARO-electronics.de> Acked-by: Oliver Hartkopp <oliver@hartkopp.net> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent f7e5cc0 commit b13bb2e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

net/can/bcm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ static __initdata const char banner[] = KERN_INFO
7575
MODULE_DESCRIPTION("PF_CAN broadcast manager protocol");
7676
MODULE_LICENSE("Dual BSD/GPL");
7777
MODULE_AUTHOR("Oliver Hartkopp <oliver.hartkopp@volkswagen.de>");
78+
MODULE_ALIAS("can-proto-2");
7879

7980
/* easy access to can_frame payload */
8081
static inline u64 GET_U64(const struct can_frame *cp)

net/can/raw.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ static __initdata const char banner[] =
6262
MODULE_DESCRIPTION("PF_CAN raw protocol");
6363
MODULE_LICENSE("Dual BSD/GPL");
6464
MODULE_AUTHOR("Urs Thuermann <urs.thuermann@volkswagen.de>");
65+
MODULE_ALIAS("can-proto-1");
6566

6667
#define MASK_ALL 0
6768

0 commit comments

Comments
 (0)