提交 00389b08 编写于 作者: M Marc Kleine-Budde 提交者: David S. Miller

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: NMarc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 882055c8
...@@ -40,7 +40,6 @@ ...@@ -40,7 +40,6 @@
#include <mach/board.h> #include <mach/board.h>
#define DRV_NAME "at91_can"
#define AT91_NAPI_WEIGHT 12 #define AT91_NAPI_WEIGHT 12
/* /*
...@@ -172,6 +171,7 @@ struct at91_priv { ...@@ -172,6 +171,7 @@ struct at91_priv {
}; };
static struct can_bittiming_const at91_bittiming_const = { static struct can_bittiming_const at91_bittiming_const = {
.name = KBUILD_MODNAME,
.tseg1_min = 4, .tseg1_min = 4,
.tseg1_max = 16, .tseg1_max = 16,
.tseg2_min = 2, .tseg2_min = 2,
...@@ -1148,7 +1148,7 @@ static struct platform_driver at91_can_driver = { ...@@ -1148,7 +1148,7 @@ static struct platform_driver at91_can_driver = {
.probe = at91_can_probe, .probe = at91_can_probe,
.remove = __devexit_p(at91_can_remove), .remove = __devexit_p(at91_can_remove),
.driver = { .driver = {
.name = DRV_NAME, .name = KBUILD_MODNAME,
.owner = THIS_MODULE, .owner = THIS_MODULE,
}, },
}; };
...@@ -1168,4 +1168,4 @@ module_exit(at91_can_module_exit); ...@@ -1168,4 +1168,4 @@ module_exit(at91_can_module_exit);
MODULE_AUTHOR("Marc Kleine-Budde <mkl@pengutronix.de>"); MODULE_AUTHOR("Marc Kleine-Budde <mkl@pengutronix.de>");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_DESCRIPTION(DRV_NAME " CAN netdevice driver"); MODULE_DESCRIPTION(KBUILD_MODNAME " CAN netdevice driver");
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册