summaryrefslogtreecommitdiffstats
path: root/drivers/thermal
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2013-01-31 09:05:26 +0000
committerZhang Rui <rui.zhang@intel.com>2013-02-08 20:25:36 +0800
commit76cc1887496fe80138c6b07c37d7f81e4cf27cde (patch)
treeb759382748832e26f60fb85d122fa34eb5aec331 /drivers/thermal
parente6e053f4e47634c07993cb31893556d24e18b65e (diff)
downloadop-kernel-dev-76cc1887496fe80138c6b07c37d7f81e4cf27cde.zip
op-kernel-dev-76cc1887496fe80138c6b07c37d7f81e4cf27cde.tar.gz
thermal: rcar: add Device Tree support
Support for loading the Renesas R-Car thermal module via devicetree. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers/thermal')
-rw-r--r--drivers/thermal/rcar_thermal.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c
index 2eebcad..909bb4b 100644
--- a/drivers/thermal/rcar_thermal.c
+++ b/drivers/thermal/rcar_thermal.c
@@ -476,9 +476,16 @@ static int rcar_thermal_remove(struct platform_device *pdev)
return 0;
}
+static const struct of_device_id rcar_thermal_dt_ids[] __devinitconst = {
+ { .compatible = "renesas,rcar-thermal", },
+ {},
+};
+MODULE_DEVICE_TABLE(of, rcar_thermal_dt_ids);
+
static struct platform_driver rcar_thermal_driver = {
.driver = {
.name = "rcar_thermal",
+ .of_match_table = rcar_thermal_dt_ids,
},
.probe = rcar_thermal_probe,
.remove = rcar_thermal_remove,
OpenPOWER on IntegriCloud