aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJochen Friedrich <jochen@scram.de>2011-11-27 16:00:54 -0500
committerSamuel Ortiz <sameo@linux.intel.com>2012-01-08 18:37:33 -0500
commit5dd7bf59e0e8563265b3e5b33276099ef628fcc7 (patch)
tree1372dd626865e4ed21cac103a706f06ef6ff700e /scripts
parentc9531227b289947950cce29cfe881b768bf9d7d9 (diff)
ARM: sa11x0: Implement autoloading of codec and codec pdata for mcp bus.
Signed-off-by: Jochen Friedrich <jochen@scram.de> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mod/file2alias.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c
index f936d1fa969d..e8c7eb16c0ea 100644
--- a/scripts/mod/file2alias.c
+++ b/scripts/mod/file2alias.c
@@ -774,6 +774,15 @@ static int do_spi_entry(const char *filename, struct spi_device_id *id,
774 return 1; 774 return 1;
775} 775}
776 776
777/* Looks like: mcp:S */
778static int do_mcp_entry(const char *filename, struct mcp_device_id *id,
779 char *alias)
780{
781 sprintf(alias, MCP_MODULE_PREFIX "%s", id->name);
782
783 return 1;
784}
785
777static const struct dmifield { 786static const struct dmifield {
778 const char *prefix; 787 const char *prefix;
779 int field; 788 int field;
@@ -1027,6 +1036,10 @@ void handle_moddevtable(struct module *mod, struct elf_info *info,
1027 do_table(symval, sym->st_size, 1036 do_table(symval, sym->st_size,
1028 sizeof(struct spi_device_id), "spi", 1037 sizeof(struct spi_device_id), "spi",
1029 do_spi_entry, mod); 1038 do_spi_entry, mod);
1039 else if (sym_is(symname, "__mod_mcp_device_table"))
1040 do_table(symval, sym->st_size,
1041 sizeof(struct mcp_device_id), "mcp",
1042 do_mcp_entry, mod);
1030 else if (sym_is(symname, "__mod_dmi_device_table")) 1043 else if (sym_is(symname, "__mod_dmi_device_table"))
1031 do_table(symval, sym->st_size, 1044 do_table(symval, sym->st_size,
1032 sizeof(struct dmi_system_id), "dmi", 1045 sizeof(struct dmi_system_id), "dmi",