diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-26 13:40:28 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-26 13:40:28 -0500 |
| commit | ed803862954528e6fcf7bd0f2b2e5a772a7c3281 (patch) | |
| tree | fce02fe5ebc10a5a8da5e034e2bb25d79d07a808 /scripts | |
| parent | 6aeea60aee945449c93d9aa70638deeb5c4c5439 (diff) | |
| parent | c0e69a5bbc6fc74184aa043aadb9a53bc58f953b (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6:
klist.c: bit 0 in pointer can't be used as flag
debugfs: introduce stub for debugfs_create_size_t() when DEBUG_FS=n
sysfs: fix problems with binary files
PNP: fix broken pnp lowercasing for acpi module aliases
driver core: Convert '/' to '!' in dev_set_name()
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/mod/file2alias.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index d4dc222a74f3..491b8b1b6abf 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c | |||
| @@ -366,11 +366,17 @@ static void do_pnp_device_entry(void *symval, unsigned long size, | |||
| 366 | 366 | ||
| 367 | for (i = 0; i < count; i++) { | 367 | for (i = 0; i < count; i++) { |
| 368 | const char *id = (char *)devs[i].id; | 368 | const char *id = (char *)devs[i].id; |
| 369 | char acpi_id[sizeof(devs[0].id)]; | ||
| 370 | int j; | ||
| 369 | 371 | ||
| 370 | buf_printf(&mod->dev_table_buf, | 372 | buf_printf(&mod->dev_table_buf, |
| 371 | "MODULE_ALIAS(\"pnp:d%s*\");\n", id); | 373 | "MODULE_ALIAS(\"pnp:d%s*\");\n", id); |
| 374 | |||
| 375 | /* fix broken pnp bus lowercasing */ | ||
| 376 | for (j = 0; j < sizeof(acpi_id); j++) | ||
| 377 | acpi_id[j] = toupper(id[j]); | ||
| 372 | buf_printf(&mod->dev_table_buf, | 378 | buf_printf(&mod->dev_table_buf, |
| 373 | "MODULE_ALIAS(\"acpi*:%s:*\");\n", id); | 379 | "MODULE_ALIAS(\"acpi*:%s:*\");\n", acpi_id); |
| 374 | } | 380 | } |
| 375 | } | 381 | } |
| 376 | 382 | ||
| @@ -416,10 +422,17 @@ static void do_pnp_card_entries(void *symval, unsigned long size, | |||
| 416 | 422 | ||
| 417 | /* add an individual alias for every device entry */ | 423 | /* add an individual alias for every device entry */ |
| 418 | if (!dup) { | 424 | if (!dup) { |
| 425 | char acpi_id[sizeof(card->devs[0].id)]; | ||
| 426 | int k; | ||
| 427 | |||
| 419 | buf_printf(&mod->dev_table_buf, | 428 | buf_printf(&mod->dev_table_buf, |
| 420 | "MODULE_ALIAS(\"pnp:d%s*\");\n", id); | 429 | "MODULE_ALIAS(\"pnp:d%s*\");\n", id); |
| 430 | |||
| 431 | /* fix broken pnp bus lowercasing */ | ||
| 432 | for (k = 0; k < sizeof(acpi_id); k++) | ||
| 433 | acpi_id[k] = toupper(id[k]); | ||
| 421 | buf_printf(&mod->dev_table_buf, | 434 | buf_printf(&mod->dev_table_buf, |
| 422 | "MODULE_ALIAS(\"acpi*:%s:*\");\n", id); | 435 | "MODULE_ALIAS(\"acpi*:%s:*\");\n", acpi_id); |
| 423 | } | 436 | } |
| 424 | } | 437 | } |
| 425 | } | 438 | } |
