1 --- a/arch/cris/arch-v10/drivers/i2c.c
2 +++ b/arch/cris/arch-v10/drivers/i2c.c
5 #include <linux/string.h>
6 #include <linux/init.h>
7 +#include <linux/device.h>
9 #include <asm/etraxi2c.h>
11 @@ -678,6 +679,8 @@ i2c_init(void)
15 +static struct class *i2c_class;
20 @@ -693,7 +696,11 @@ i2c_register(void)
23 printk(KERN_INFO "I2C driver v2.2, (c) 1999-2004 Axis Communications AB\n");
26 + i2c_class = class_create(THIS_MODULE, "i2c_etrax");
27 + device_create(i2c_class, NULL,
28 + MKDEV(I2C_MAJOR, 0), NULL, "i2c");