diff options
author | David S. Miller <davem@davemloft.net> | 2010-05-19 02:01:55 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-05-19 02:01:55 -0400 |
commit | 2ec8c6bb5d8f3a62a79f463525054bae1e3d4487 (patch) | |
tree | fa7f8400ac685fb52e96f64997c7c682fc2aa021 /scripts | |
parent | 7b39f90fabcf9e2af0cd79d0a60440d821e22b56 (diff) | |
parent | 537b60d17894b7c19a6060feae40299d7109d6e7 (diff) |
Merge branch 'master' of /home/davem/src/GIT/linux-2.6/
Conflicts:
include/linux/mod_devicetable.h
scripts/mod/file2alias.c
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.lib | 4 | ||||
-rw-r--r-- | scripts/mod/file2alias.c | 14 |
2 files changed, 18 insertions, 0 deletions
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index f9bdf264473d..cbcd654215e6 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib | |||
@@ -245,3 +245,7 @@ quiet_cmd_lzo = LZO $@ | |||
245 | cmd_lzo = (cat $(filter-out FORCE,$^) | \ | 245 | cmd_lzo = (cat $(filter-out FORCE,$^) | \ |
246 | lzop -9 && $(call size_append, $(filter-out FORCE,$^))) > $@ || \ | 246 | lzop -9 && $(call size_append, $(filter-out FORCE,$^))) > $@ || \ |
247 | (rm -f $@ ; false) | 247 | (rm -f $@ ; false) |
248 | |||
249 | # misc stuff | ||
250 | # --------------------------------------------------------------------------- | ||
251 | quote:=" | ||
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index 36a60a853173..9cf2400580a7 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c | |||
@@ -818,6 +818,16 @@ static int do_mdio_entry(const char *filename, | |||
818 | return 1; | 818 | return 1; |
819 | } | 819 | } |
820 | 820 | ||
821 | /* Looks like: zorro:iN. */ | ||
822 | static int do_zorro_entry(const char *filename, struct zorro_device_id *id, | ||
823 | char *alias) | ||
824 | { | ||
825 | id->id = TO_NATIVE(id->id); | ||
826 | strcpy(alias, "zorro:"); | ||
827 | ADD(alias, "i", id->id != ZORRO_WILDCARD, id->id); | ||
828 | return 1; | ||
829 | } | ||
830 | |||
821 | /* Ignore any prefix, eg. some architectures prepend _ */ | 831 | /* Ignore any prefix, eg. some architectures prepend _ */ |
822 | static inline int sym_is(const char *symbol, const char *name) | 832 | static inline int sym_is(const char *symbol, const char *name) |
823 | { | 833 | { |
@@ -969,6 +979,10 @@ void handle_moddevtable(struct module *mod, struct elf_info *info, | |||
969 | do_table(symval, sym->st_size, | 979 | do_table(symval, sym->st_size, |
970 | sizeof(struct mdio_device_id), "mdio", | 980 | sizeof(struct mdio_device_id), "mdio", |
971 | do_mdio_entry, mod); | 981 | do_mdio_entry, mod); |
982 | else if (sym_is(symname, "__mod_zorro_device_table")) | ||
983 | do_table(symval, sym->st_size, | ||
984 | sizeof(struct zorro_device_id), "zorro", | ||
985 | do_zorro_entry, mod); | ||
972 | free(zeros); | 986 | free(zeros); |
973 | } | 987 | } |
974 | 988 | ||