2 drivers/net/can/Kconfig | 9 +++++++++
3 drivers/net/can/Makefile | 3 +++
4 drivers/net/can/dev.c | 8 --------
5 3 files changed, 12 insertions(+), 8 deletions(-)
7 Index: linux-2.6.25.6.OLD/drivers/net/can/Kconfig
8 ===================================================================
9 --- linux-2.6.25.6.OLD.orig/drivers/net/can/Kconfig
10 +++ linux-2.6.25.6.OLD/drivers/net/can/Kconfig
11 @@ -12,6 +12,15 @@ config CAN_VCAN
12 This driver can also be built as a module. If so, the module
16 + tristate "Prompt for platform CAN drivers with sysfs support"
20 + Enables the common framework for platform CAN drivers with sysfs
21 + support. This is the standard library for CAN drivers.
24 config CAN_DEBUG_DEVICES
25 bool "CAN devices debugging messages"
27 Index: linux-2.6.25.6.OLD/drivers/net/can/Makefile
28 ===================================================================
29 --- linux-2.6.25.6.OLD.orig/drivers/net/can/Makefile
30 +++ linux-2.6.25.6.OLD/drivers/net/can/Makefile
34 obj-$(CONFIG_CAN_VCAN) += vcan.o
36 +obj-$(CONFIG_CAN_DEV) += can-dev.o
38 Index: linux-2.6.25.6.OLD/drivers/net/can/dev.c
39 ===================================================================
40 --- linux-2.6.25.6.OLD.orig/drivers/net/can/dev.c
41 +++ linux-2.6.25.6.OLD/drivers/net/can/dev.c
43 #include <linux/can.h>
44 #include <linux/can/dev.h>
48 #define MOD_DESC "CAN netdevice library"
50 MODULE_DESCRIPTION(MOD_DESC);
51 @@ -440,14 +438,8 @@ static int can_netdev_notifier_call(stru
52 if (can_set_bitrate(dev, CAN_BITRATE_DEFAULT))
53 dev_err(ND2D(dev), "failed to set bitrate\n");
56 - can_create_sysfs(dev);
59 case NETDEV_UNREGISTER:
61 - can_remove_sysfs(dev);