1 Index: linux-2.6.25.16/arch/cris/arch-v10/drivers/ds1302.c
2 ===================================================================
3 --- linux-2.6.25.16.o/arch/cris/arch-v10/drivers/ds1302.c 2008-10-26 15:54:02.000000000 +0100
4 +++ linux-2.6.25.16/arch/cris/arch-v10/drivers/ds1302.c 2008-10-26 15:59:37.000000000 +0100
6 #include <linux/delay.h>
8 #include <linux/capability.h>
9 +#include <linux/device.h>
11 #include <asm/uaccess.h>
12 #include <asm/system.h>
18 +static struct class *rtc_class;
21 static int __init ds1302_register(void)
25 ds1302_name, RTC_MAJOR_NR);
29 + rtc_class = class_create(THIS_MODULE, "rtc");
30 + class_device_create(rtc_class, NULL, MKDEV(RTC_MAJOR_NR, 0),
37 Index: linux-2.6.25.16/arch/cris/arch-v10/drivers/gpio.c
38 ===================================================================
39 --- linux-2.6.25.16.o/arch/cris/arch-v10/drivers/gpio.c 2008-10-26 15:56:28.000000000 +0100
40 +++ linux-2.6.25.16/arch/cris/arch-v10/drivers/gpio.c 2008-10-26 15:57:41.000000000 +0100
42 #include <linux/poll.h>
43 #include <linux/init.h>
44 #include <linux/interrupt.h>
45 +#include <linux/device.h>
47 #include <asm/etraxgpio.h>
48 #include <asm/arch/svinto.h>
51 /* main driver initialization routine, called from mem.c */
54 +static struct class *gpio_class;
57 static int __init gpio_init(void)
65 + gpio_class = class_create(THIS_MODULE, "gpio");
66 + class_device_create(gpio_class, NULL, MKDEV(GPIO_MAJOR, 0), NULL, "gpioa");
67 + class_device_create(gpio_class, NULL, MKDEV(GPIO_MAJOR, 1), NULL, "gpiob");
68 + class_device_create(gpio_class, NULL, MKDEV(GPIO_MAJOR, 2), NULL, "leds");
69 + class_device_create(gpio_class, NULL, MKDEV(GPIO_MAJOR, 3), NULL, "gpiog");
72 #if defined (CONFIG_ETRAX_CSP0_LEDS) || defined (CONFIG_ETRAX_PA_LEDS) || defined (CONFIG_ETRAX_PB_LEDS)
73 CRIS_LED_NETWORK_SET(0);