diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-11 21:57:31 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-11 21:57:31 -0400 |
commit | 6abd2c860e34add677de50e8b134f5af6f4b0893 (patch) | |
tree | d201de170ca4851d66dbd02046fea7d95214fad7 /scripts | |
parent | d2c75f2f4b8be1c78f275c49e399d5a9b21ce924 (diff) | |
parent | 019a5f56ec195aceadada18aaaad0f67294bdaef (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/drzeus/mmc
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/drzeus/mmc: (67 commits)
mmc: don't use weight32()
pxamci: support arbitrary block size
sdio: make the IRQ thread more resilient in the presence of bad states
sdio: fix IRQ diagnostic message
sdhci: remove old dma module params
sdhci: add SDHCI_QUIRK_BROKEN_DMA quirk
sdhci: remove DMA capability check from controller's PCI Class reg
sdhci: fix a typo
mmc: Disabler for Ricoh MMC controller
sdio: adaptive interrupt polling
mmc: pxamci: add SDIO card interrupt reporting capability
mmc: pxamci: set proper buswidth capabilities according to PXA flavor
mmc: pxamci: set proper block capabilities according to PXA flavor
mmc: pxamci: better pending IRQ determination
arm: i.MX/MX1 SDHC implements SD cards read-only switch read-back
mmc: add led trigger
mmc_spi host driver
MMC core learns about SPI
MMC/SD card driver learns SPI
MMC headers learn about SPI
...
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mod/file2alias.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index 8a09021d8c59..1e5d4d693195 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c | |||
@@ -484,6 +484,22 @@ static int do_parisc_entry(const char *filename, struct parisc_device_id *id, | |||
484 | return 1; | 484 | return 1; |
485 | } | 485 | } |
486 | 486 | ||
487 | /* Looks like: sdio:cNvNdN. */ | ||
488 | static int do_sdio_entry(const char *filename, | ||
489 | struct sdio_device_id *id, char *alias) | ||
490 | { | ||
491 | id->class = TO_NATIVE(id->class); | ||
492 | id->vendor = TO_NATIVE(id->vendor); | ||
493 | id->device = TO_NATIVE(id->device); | ||
494 | |||
495 | strcpy(alias, "sdio:"); | ||
496 | ADD(alias, "c", id->class != (__u8)SDIO_ANY_ID, id->class); | ||
497 | ADD(alias, "v", id->vendor != (__u16)SDIO_ANY_ID, id->vendor); | ||
498 | ADD(alias, "d", id->device != (__u16)SDIO_ANY_ID, id->device); | ||
499 | |||
500 | return 1; | ||
501 | } | ||
502 | |||
487 | /* Ignore any prefix, eg. v850 prepends _ */ | 503 | /* Ignore any prefix, eg. v850 prepends _ */ |
488 | static inline int sym_is(const char *symbol, const char *name) | 504 | static inline int sym_is(const char *symbol, const char *name) |
489 | { | 505 | { |
@@ -599,6 +615,10 @@ void handle_moddevtable(struct module *mod, struct elf_info *info, | |||
599 | do_table(symval, sym->st_size, | 615 | do_table(symval, sym->st_size, |
600 | sizeof(struct parisc_device_id), "parisc", | 616 | sizeof(struct parisc_device_id), "parisc", |
601 | do_parisc_entry, mod); | 617 | do_parisc_entry, mod); |
618 | else if (sym_is(symname, "__mod_sdio_device_table")) | ||
619 | do_table(symval, sym->st_size, | ||
620 | sizeof(struct sdio_device_id), "sdio", | ||
621 | do_sdio_entry, mod); | ||
602 | } | 622 | } |
603 | 623 | ||
604 | /* Now add out buffered information to the generated C source */ | 624 | /* Now add out buffered information to the generated C source */ |