Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96880
b: refs/heads/master
c: 238a871
h: refs/heads/master
v: v3
  • Loading branch information
Jean Delvare authored and Jean Delvare committed May 18, 2008
1 parent 2d7bb92 commit 0fc851c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 24fbacca029ef1ecf007dc804c8f2c2285b6ceb3
refs/heads/master: 238a871e41ffbd9ba6608cac7c8b74549ac3bb9b
7 changes: 2 additions & 5 deletions trunk/arch/powerpc/platforms/pasemi/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,11 @@
*/
struct i2c_driver_device {
char *of_device;
char *i2c_driver;
char *i2c_type;
};

static struct i2c_driver_device i2c_devices[] __initdata = {
{"dallas,ds1338", "rtc-ds1307", "ds1338"},
{"dallas,ds1338", "ds1338"},
};

static int __init find_i2c_driver(struct device_node *node,
Expand All @@ -40,9 +39,7 @@ static int __init find_i2c_driver(struct device_node *node,
for (i = 0; i < ARRAY_SIZE(i2c_devices); i++) {
if (!of_device_is_compatible(node, i2c_devices[i].of_device))
continue;
if (strlcpy(info->driver_name, i2c_devices[i].i2c_driver,
KOBJ_NAME_LEN) >= KOBJ_NAME_LEN ||
strlcpy(info->type, i2c_devices[i].i2c_type,
if (strlcpy(info->type, i2c_devices[i].i2c_type,
I2C_NAME_SIZE) >= I2C_NAME_SIZE)
return -ENOMEM;
return 0;
Expand Down

0 comments on commit 0fc851c

Please sign in to comment.