diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-17 16:54:29 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-17 16:54:29 -0400 |
commit | ba2e1c5f25a99dec3873745031ad23ce3fd79bff (patch) | |
tree | ebcc8e9b0f395033e8ba1db8e30fb6ea78edc442 /scripts | |
parent | 7d32c0aca4fbd0319c860d12af5fae3e88c760e6 (diff) | |
parent | 92183b346f02773dae09182c65f16b013f295d80 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k:
m68k: amiga - Floppy platform device conversion
m68k: amiga - Sound platform device conversion
m68k: amiga - Frame buffer platform device conversion
m68k: amiga - Zorro host bridge platform device conversion
m68k: amiga - Zorro bus modalias support
platform: Make platform resource input parameters const
m68k: invoke oom-killer from page fault
serial167: Kill unused variables
m68k: Implement generic_find_next_{zero_,}le_bit()
m68k: hp300 - Checkpatch cleanup
m68k: Remove trailing spaces in messages
m68k: Simplify param.h by using <asm-generic/param.h>
m68k: Remove BKL from rtc implementations
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mod/file2alias.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index 220213e603db..df90f31d14bf 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c | |||
@@ -796,6 +796,16 @@ static int do_platform_entry(const char *filename, | |||
796 | return 1; | 796 | return 1; |
797 | } | 797 | } |
798 | 798 | ||
799 | /* Looks like: zorro:iN. */ | ||
800 | static int do_zorro_entry(const char *filename, struct zorro_device_id *id, | ||
801 | char *alias) | ||
802 | { | ||
803 | id->id = TO_NATIVE(id->id); | ||
804 | strcpy(alias, "zorro:"); | ||
805 | ADD(alias, "i", id->id != ZORRO_WILDCARD, id->id); | ||
806 | return 1; | ||
807 | } | ||
808 | |||
799 | /* Ignore any prefix, eg. some architectures prepend _ */ | 809 | /* Ignore any prefix, eg. some architectures prepend _ */ |
800 | static inline int sym_is(const char *symbol, const char *name) | 810 | static inline int sym_is(const char *symbol, const char *name) |
801 | { | 811 | { |
@@ -943,6 +953,10 @@ void handle_moddevtable(struct module *mod, struct elf_info *info, | |||
943 | do_table(symval, sym->st_size, | 953 | do_table(symval, sym->st_size, |
944 | sizeof(struct platform_device_id), "platform", | 954 | sizeof(struct platform_device_id), "platform", |
945 | do_platform_entry, mod); | 955 | do_platform_entry, mod); |
956 | else if (sym_is(symname, "__mod_zorro_device_table")) | ||
957 | do_table(symval, sym->st_size, | ||
958 | sizeof(struct zorro_device_id), "zorro", | ||
959 | do_zorro_entry, mod); | ||
946 | free(zeros); | 960 | free(zeros); |
947 | } | 961 | } |
948 | 962 | ||