i2c: Switch pasemi to the new device/driver matching scheme

The old device/driver matching scheme is going away so stop using it.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Olof Johansson <olof@lixom.net>

authored by Jean Delvare and committed by Jean Delvare 238a871e 24fbacca

+2 -5
+2 -5
arch/powerpc/platforms/pasemi/misc.c
··· 24 */ 25 struct i2c_driver_device { 26 char *of_device; 27 - char *i2c_driver; 28 char *i2c_type; 29 }; 30 31 static struct i2c_driver_device i2c_devices[] __initdata = { 32 - {"dallas,ds1338", "rtc-ds1307", "ds1338"}, 33 }; 34 35 static int __init find_i2c_driver(struct device_node *node, ··· 39 for (i = 0; i < ARRAY_SIZE(i2c_devices); i++) { 40 if (!of_device_is_compatible(node, i2c_devices[i].of_device)) 41 continue; 42 - if (strlcpy(info->driver_name, i2c_devices[i].i2c_driver, 43 - KOBJ_NAME_LEN) >= KOBJ_NAME_LEN || 44 - strlcpy(info->type, i2c_devices[i].i2c_type, 45 I2C_NAME_SIZE) >= I2C_NAME_SIZE) 46 return -ENOMEM; 47 return 0;
··· 24 */ 25 struct i2c_driver_device { 26 char *of_device; 27 char *i2c_type; 28 }; 29 30 static struct i2c_driver_device i2c_devices[] __initdata = { 31 + {"dallas,ds1338", "ds1338"}, 32 }; 33 34 static int __init find_i2c_driver(struct device_node *node, ··· 40 for (i = 0; i < ARRAY_SIZE(i2c_devices); i++) { 41 if (!of_device_is_compatible(node, i2c_devices[i].of_device)) 42 continue; 43 + if (strlcpy(info->type, i2c_devices[i].i2c_type, 44 I2C_NAME_SIZE) >= I2C_NAME_SIZE) 45 return -ENOMEM; 46 return 0;