aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mod
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/mod')
-rw-r--r--scripts/mod/file2alias.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c
index 7abee0f2d207..91c15da2680b 100644
--- a/scripts/mod/file2alias.c
+++ b/scripts/mod/file2alias.c
@@ -414,13 +414,6 @@ static int do_vio_entry(const char *filename, struct vio_device_id *vio,
414 return 1; 414 return 1;
415} 415}
416 416
417static int do_i2c_entry(const char *filename, struct i2c_device_id *i2c, char *alias)
418{
419 strcpy(alias, "i2c:");
420 ADD(alias, "id", 1, i2c->id);
421 return 1;
422}
423
424#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) 417#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
425 418
426static void do_input(char *alias, 419static void do_input(char *alias,
@@ -638,10 +631,6 @@ void handle_moddevtable(struct module *mod, struct elf_info *info,
638 do_table(symval, sym->st_size, 631 do_table(symval, sym->st_size,
639 sizeof(struct vio_device_id), "vio", 632 sizeof(struct vio_device_id), "vio",
640 do_vio_entry, mod); 633 do_vio_entry, mod);
641 else if (sym_is(symname, "__mod_i2c_device_table"))
642 do_table(symval, sym->st_size,
643 sizeof(struct i2c_device_id), "i2c",
644 do_i2c_entry, mod);
645 else if (sym_is(symname, "__mod_input_device_table")) 634 else if (sym_is(symname, "__mod_input_device_table"))
646 do_table(symval, sym->st_size, 635 do_table(symval, sym->st_size,
647 sizeof(struct input_device_id), "input", 636 sizeof(struct input_device_id), "input",