[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <19037.40313.827769.602243@ipc1.ka-ro>
Date: Wed, 15 Jul 2009 11:12:25 +0200
From: Lothar Waßmann <LW@...O-electronics.de>
To: netdev@...r.kernel.org
Cc: Oliver Hartkopp <oliver@...tkopp.net>,
Herbert Xu <herbert@...dor.apana.org.au>, davem@...emloft.net,
Wolfgang Grandegger <wg@...ndegger.com>,
urs.thuermann@...kswagen.de, Urs Thuermann <urs@...ogud.escape.de>
Subject: [PATCH 2/2] 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@...O-electronics.de>
Acked-by: Oliver Hartkopp <oliver@...tkopp.net>
---
diff -ur linux-2.6.30/net/can/bcm.c linux-2.6.30-karo/net/can/bcm.c
--- linux-2.6.30-karo.orig/net/can/bcm.c 2009-07-15 10:58:51.000000000 +0200
+++ linux-2.6.30-karo/net/can/bcm.c 2009-07-14 13:48:52.000000000 +0200
@@ -75,6 +75,7 @@
MODULE_DESCRIPTION("PF_CAN broadcast manager protocol");
MODULE_LICENSE("Dual BSD/GPL");
MODULE_AUTHOR("Oliver Hartkopp <oliver.hartkopp@...kswagen.de>");
+MODULE_ALIAS("can-proto-2");
/* easy access to can_frame payload */
static inline u64 GET_U64(const struct can_frame *cp)
diff -ur linux-2.6.30/net/can/raw.c linux-2.6.30-karo/net/can/raw.c
--- linux-2.6.30-karo.orig/net/can/raw.c 2009-07-15 10:59:03.000000000 +0200
+++ linux-2.6.30-karo/net/can/raw.c 2009-07-14 13:48:52.000000000 +0200
@@ -62,6 +62,7 @@
MODULE_DESCRIPTION("PF_CAN raw protocol");
MODULE_LICENSE("Dual BSD/GPL");
MODULE_AUTHOR("Urs Thuermann <urs.thuermann@...kswagen.de>");
+MODULE_ALIAS("can-proto-1");
#define MASK_ALL 0
Lothar Waßmann
--
___________________________________________________________
Ka-Ro electronics GmbH | Pascalstraße 22 | D - 52076 Aachen
Phone: +49 2408 1402-0 | Fax: +49 2408 1402-10
Geschäftsführer: Matthias Kaussen
Handelsregistereintrag: Amtsgericht Aachen, HRB 4996
www.karo-electronics.de | info@...o-electronics.de
___________________________________________________________
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists