diff options
author | Kars de Jong <jongk@linux-m68k.org> | 2005-09-25 14:39:46 +0200 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2005-09-26 13:13:58 +0200 |
commit | 4fb7edce52e5b6cf41e3375822d74a27f0b6f2dd (patch) | |
tree | b8732f31a90fc4574127e7849295653980370b31 /scripts/mod | |
parent | 2570b746484cfddf4b7b4715dbb69d53d5284f4d (diff) | |
download | linux-4fb7edce52e5b6cf41e3375822d74a27f0b6f2dd.tar.gz linux-4fb7edce52e5b6cf41e3375822d74a27f0b6f2dd.tar.bz2 linux-4fb7edce52e5b6cf41e3375822d74a27f0b6f2dd.zip |
[PATCH] pcmcia: fix cross-platform issues with pcmcia module aliases
- Added a missing TO_NATIVE call to scripts/mod/file2alias.c:do_pcmcia_entry()
- Add an alignment attribute to struct pcmcia_device_no to solve an alignment
issue seen when cross-compiling on x86 for m68k.
Signed-off-by: Kars de Jong <jongk@linux-m68k.org>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'scripts/mod')
-rw-r--r-- | scripts/mod/file2alias.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index d8ee38aede26..f2ee673329a7 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c @@ -295,11 +295,13 @@ static int do_pcmcia_entry(const char *filename, { unsigned int i; + id->match_flags = TO_NATIVE(id->match_flags); id->manf_id = TO_NATIVE(id->manf_id); id->card_id = TO_NATIVE(id->card_id); id->func_id = TO_NATIVE(id->func_id); id->function = TO_NATIVE(id->function); id->device_no = TO_NATIVE(id->device_no); + for (i=0; i<4; i++) { id->prod_id_hash[i] = TO_NATIVE(id->prod_id_hash[i]); } |