forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
can: enable module auto loading for virtual CAN interfaces
Autoload the vcan module when a vcan instance is to be created by 'ip link add type vcan' Signed-off-by: Oliver Hartkopp <[email protected]> Signed-off-by: Marc Kleine-Budde <[email protected]>
- Loading branch information
1 parent
a8f820a
commit 5e64ebc
Showing
1 changed file
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* vcan.c - Virtual CAN interface | ||
* | ||
* Copyright (c) 2002-2007 Volkswagen Group Electronic Research | ||
* Copyright (c) 2002-2017 Volkswagen Group Electronic Research | ||
* All rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
|
@@ -50,9 +50,12 @@ | |
#include <linux/slab.h> | ||
#include <net/rtnetlink.h> | ||
|
||
#define DRV_NAME "vcan" | ||
|
||
MODULE_DESCRIPTION("virtual CAN interface"); | ||
MODULE_LICENSE("Dual BSD/GPL"); | ||
MODULE_AUTHOR("Urs Thuermann <[email protected]>"); | ||
MODULE_ALIAS_RTNL_LINK(DRV_NAME); | ||
|
||
|
||
/* | ||
|
@@ -164,7 +167,7 @@ static void vcan_setup(struct net_device *dev) | |
} | ||
|
||
static struct rtnl_link_ops vcan_link_ops __read_mostly = { | ||
.kind = "vcan", | ||
.kind = DRV_NAME, | ||
.setup = vcan_setup, | ||
}; | ||
|
||
|