x86, mrst: add msic_thermal platform support
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 15 Dec 2011 22:28:37 +0000 (22:28 +0000)
committerMatthew Garrett <mjg@redhat.com>
Tue, 20 Mar 2012 16:02:21 +0000 (12:02 -0400)
This will let the MSIC driver to create platform device for the thermal
driver.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
arch/x86/platform/mrst/mrst.c

index 475e2cd0f3c3f5f10c668129f9ebd4a4e4754c0d..229b8bf42cd9053b532ed880346354647dbdacbb 100644 (file)
@@ -686,6 +686,11 @@ static void *msic_ocd_platform_data(void *info)
        return msic_generic_platform_data(info, INTEL_MSIC_BLOCK_OCD);
 }
 
+static void *msic_thermal_platform_data(void *info)
+{
+       return msic_generic_platform_data(info, INTEL_MSIC_BLOCK_THERMAL);
+}
+
 static const struct devs_id __initconst device_ids[] = {
        {"bma023", SFI_DEV_TYPE_I2C, 1, &no_platform_data},
        {"pmic_gpio", SFI_DEV_TYPE_SPI, 1, &pmic_gpio_platform_data},
@@ -705,6 +710,7 @@ static const struct devs_id __initconst device_ids[] = {
        {"msic_audio", SFI_DEV_TYPE_IPC, 1, &msic_audio_platform_data},
        {"msic_power_btn", SFI_DEV_TYPE_IPC, 1, &msic_power_btn_platform_data},
        {"msic_ocd", SFI_DEV_TYPE_IPC, 1, &msic_ocd_platform_data},
+       {"msic_thermal", SFI_DEV_TYPE_IPC, 1, &msic_thermal_platform_data},
 
        {},
 };