diff options
| author | Takashi Iwai <tiwai@suse.de> | 2009-05-04 10:00:16 -0400 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2009-05-04 10:00:16 -0400 |
| commit | 3a20ac2c52b1317f5a5f0bd9cd3cbe8495ddd026 (patch) | |
| tree | 9a912f2609cefb9698b5cce09cd240bd6dbd09fb /include/linux/mod_devicetable.h | |
| parent | 18cc8d8d9b74c446832336d8f6e1afb145f9431b (diff) | |
| parent | 3e5b50165fd0be080044586f43fcdd460ed27610 (diff) | |
Merge branch 'fix/pcm-jiffies-check' into fix/asoc
Diffstat (limited to 'include/linux/mod_devicetable.h')
| -rw-r--r-- | include/linux/mod_devicetable.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h index 97b91d1abb43..1bf5900ffe43 100644 --- a/include/linux/mod_devicetable.h +++ b/include/linux/mod_devicetable.h | |||
| @@ -443,8 +443,24 @@ struct dmi_system_id { | |||
| 443 | struct dmi_strmatch matches[4]; | 443 | struct dmi_strmatch matches[4]; |
| 444 | void *driver_data; | 444 | void *driver_data; |
| 445 | }; | 445 | }; |
| 446 | /* | ||
| 447 | * struct dmi_device_id appears during expansion of | ||
| 448 | * "MODULE_DEVICE_TABLE(dmi, x)". Compiler doesn't look inside it | ||
| 449 | * but this is enough for gcc 3.4.6 to error out: | ||
| 450 | * error: storage size of '__mod_dmi_device_table' isn't known | ||
| 451 | */ | ||
| 452 | #define dmi_device_id dmi_system_id | ||
| 446 | #endif | 453 | #endif |
| 447 | 454 | ||
| 448 | #define DMI_MATCH(a, b) { a, b } | 455 | #define DMI_MATCH(a, b) { a, b } |
| 449 | 456 | ||
| 457 | #define PLATFORM_NAME_SIZE 20 | ||
| 458 | #define PLATFORM_MODULE_PREFIX "platform:" | ||
| 459 | |||
| 460 | struct platform_device_id { | ||
| 461 | char name[PLATFORM_NAME_SIZE]; | ||
| 462 | kernel_ulong_t driver_data | ||
| 463 | __attribute__((aligned(sizeof(kernel_ulong_t)))); | ||
| 464 | }; | ||
| 465 | |||
| 450 | #endif /* LINUX_MOD_DEVICETABLE_H */ | 466 | #endif /* LINUX_MOD_DEVICETABLE_H */ |
