diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-10-21 01:01:22 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-24 14:47:52 -0700 |
commit | 00389b0820c44cceec3f6981cb4d217982ec73b2 (patch) | |
tree | 00bffbec9d4b7ee8bdf989b277bf39e1f46e63ac /drivers/net/can/at91_can.c | |
parent | 882055c8387e85cb380ab152b96ff69b570d8989 (diff) | |
download | blackbird-op-linux-00389b0820c44cceec3f6981cb4d217982ec73b2.tar.gz blackbird-op-linux-00389b0820c44cceec3f6981cb4d217982ec73b2.zip |
can: at91_can: add KBUILD_MODNAME to bittiming constant
While there replace all usage of self defined DRV_NAME by KBUILD_MODNAME.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/can/at91_can.c')
-rw-r--r-- | drivers/net/can/at91_can.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/can/at91_can.c b/drivers/net/can/at91_can.c index 7149a8645eef..cee98fa668bd 100644 --- a/drivers/net/can/at91_can.c +++ b/drivers/net/can/at91_can.c @@ -40,7 +40,6 @@ #include <mach/board.h> -#define DRV_NAME "at91_can" #define AT91_NAPI_WEIGHT 12 /* @@ -172,6 +171,7 @@ struct at91_priv { }; static struct can_bittiming_const at91_bittiming_const = { + .name = KBUILD_MODNAME, .tseg1_min = 4, .tseg1_max = 16, .tseg2_min = 2, @@ -1148,7 +1148,7 @@ static struct platform_driver at91_can_driver = { .probe = at91_can_probe, .remove = __devexit_p(at91_can_remove), .driver = { - .name = DRV_NAME, + .name = KBUILD_MODNAME, .owner = THIS_MODULE, }, }; @@ -1168,4 +1168,4 @@ module_exit(at91_can_module_exit); MODULE_AUTHOR("Marc Kleine-Budde <mkl@pengutronix.de>"); MODULE_LICENSE("GPL v2"); -MODULE_DESCRIPTION(DRV_NAME " CAN netdevice driver"); +MODULE_DESCRIPTION(KBUILD_MODNAME " CAN netdevice driver"); |