Skip to content

Commit

Permalink
can: at91_can: add KBUILD_MODNAME to bittiming constant
Browse files Browse the repository at this point in the history
While there replace all usage of self defined DRV_NAME by KBUILD_MODNAME.

Signed-off-by: Marc Kleine-Budde <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
marckleinebudde authored and davem330 committed Oct 24, 2010
1 parent 882055c commit 00389b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/can/at91_can.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@

#include <mach/board.h>

#define DRV_NAME "at91_can"
#define AT91_NAPI_WEIGHT 12

/*
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
},
};
Expand All @@ -1168,4 +1168,4 @@ module_exit(at91_can_module_exit);

MODULE_AUTHOR("Marc Kleine-Budde <[email protected]>");
MODULE_LICENSE("GPL v2");
MODULE_DESCRIPTION(DRV_NAME " CAN netdevice driver");
MODULE_DESCRIPTION(KBUILD_MODNAME " CAN netdevice driver");

0 comments on commit 00389b0

Please sign in to comment.