diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2009-11-17 06:57:12 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-17 06:57:34 -0500 |
commit | 24cfbcbabf1faef396ee45b13b25c85d2d17b90d (patch) | |
tree | 051ee7aaf63a08fa3fc60741b7c576aa8f11d3e3 /drivers/net/can | |
parent | 323907ac72a223ed4e4d67ce8e3589900023a0c8 (diff) |
net/can/mscan: improve build
- move Kconfig entries to the subdirectory
- do remaining renames of mpc52xx to mpc5xxx
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/can')
-rw-r--r-- | drivers/net/can/Kconfig | 19 | ||||
-rw-r--r-- | drivers/net/can/mscan/Kconfig | 23 | ||||
-rw-r--r-- | drivers/net/can/mscan/Makefile | 4 | ||||
-rw-r--r-- | drivers/net/can/mscan/mpc5xxx_can.c (renamed from drivers/net/can/mscan/mpc52xx_can.c) | 0 |
4 files changed, 26 insertions, 20 deletions
diff --git a/drivers/net/can/Kconfig b/drivers/net/can/Kconfig index 732b093e0815..bb803fa1e6a7 100644 --- a/drivers/net/can/Kconfig +++ b/drivers/net/can/Kconfig | |||
@@ -54,24 +54,7 @@ config CAN_MCP251X | |||
54 | ---help--- | 54 | ---help--- |
55 | Driver for the Microchip MCP251x SPI CAN controllers. | 55 | Driver for the Microchip MCP251x SPI CAN controllers. |
56 | 56 | ||
57 | config CAN_MSCAN | 57 | source "drivers/net/can/mscan/Kconfig" |
58 | depends on CAN_DEV && (PPC || M68K || M68KNOMMU) | ||
59 | tristate "Support for Freescale MSCAN based chips" | ||
60 | ---help--- | ||
61 | The Motorola Scalable Controller Area Network (MSCAN) definition | ||
62 | is based on the MSCAN12 definition which is the specific | ||
63 | implementation of the Motorola Scalable CAN concept targeted for | ||
64 | the Motorola MC68HC12 Microcontroller Family. | ||
65 | |||
66 | config CAN_MPC52XX | ||
67 | tristate "Freescale MPC5xxx onboard CAN controller" | ||
68 | depends on CAN_MSCAN && PPC_MPC52xx | ||
69 | ---help--- | ||
70 | If you say yes here you get support for Freescale's MPC52xx | ||
71 | onboard dualCAN controller. | ||
72 | |||
73 | This driver can also be built as a module. If so, the module | ||
74 | will be called mpc5xxx_can. | ||
75 | 58 | ||
76 | source "drivers/net/can/sja1000/Kconfig" | 59 | source "drivers/net/can/sja1000/Kconfig" |
77 | 60 | ||
diff --git a/drivers/net/can/mscan/Kconfig b/drivers/net/can/mscan/Kconfig new file mode 100644 index 000000000000..cd0f2d6f375d --- /dev/null +++ b/drivers/net/can/mscan/Kconfig | |||
@@ -0,0 +1,23 @@ | |||
1 | config CAN_MSCAN | ||
2 | depends on CAN_DEV && (PPC || M68K || M68KNOMMU) | ||
3 | tristate "Support for Freescale MSCAN based chips" | ||
4 | ---help--- | ||
5 | The Motorola Scalable Controller Area Network (MSCAN) definition | ||
6 | is based on the MSCAN12 definition which is the specific | ||
7 | implementation of the Motorola Scalable CAN concept targeted for | ||
8 | the Motorola MC68HC12 Microcontroller Family. | ||
9 | |||
10 | if CAN_MSCAN | ||
11 | |||
12 | config CAN_MPC5XXX | ||
13 | tristate "Freescale MPC5xxx onboard CAN controller" | ||
14 | depends on PPC_MPC52xx | ||
15 | ---help--- | ||
16 | If you say yes here you get support for Freescale's MPC5xxx | ||
17 | onboard CAN controller. | ||
18 | |||
19 | This driver can also be built as a module. If so, the module | ||
20 | will be called mscan-mpc5xxx.ko. | ||
21 | |||
22 | endif | ||
23 | |||
diff --git a/drivers/net/can/mscan/Makefile b/drivers/net/can/mscan/Makefile index 2bd9f04c7908..c9fab17cd8b4 100644 --- a/drivers/net/can/mscan/Makefile +++ b/drivers/net/can/mscan/Makefile | |||
@@ -1,5 +1,5 @@ | |||
1 | 1 | ||
2 | obj-$(CONFIG_CAN_MPC52XX) += mscan-mpc52xx.o | 2 | obj-$(CONFIG_CAN_MPC5XXX) += mscan-mpc5xxx.o |
3 | mscan-mpc52xx-objs := mscan.o mpc52xx_can.o | 3 | mscan-mpc5xxx-objs := mscan.o mpc5xxx_can.o |
4 | 4 | ||
5 | ccflags-$(CONFIG_CAN_DEBUG_DEVICES) := -DDEBUG | 5 | ccflags-$(CONFIG_CAN_DEBUG_DEVICES) := -DDEBUG |
diff --git a/drivers/net/can/mscan/mpc52xx_can.c b/drivers/net/can/mscan/mpc5xxx_can.c index 1de6f6349b16..1de6f6349b16 100644 --- a/drivers/net/can/mscan/mpc52xx_can.c +++ b/drivers/net/can/mscan/mpc5xxx_can.c | |||