diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2013-01-31 04:05:26 -0500 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2013-02-08 07:25:36 -0500 |
commit | 76cc1887496fe80138c6b07c37d7f81e4cf27cde (patch) | |
tree | b759382748832e26f60fb85d122fa34eb5aec331 /drivers | |
parent | e6e053f4e47634c07993cb31893556d24e18b65e (diff) |
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')
-rw-r--r-- | drivers/thermal/rcar_thermal.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c index 2eebcadb4c99..909bb4bb837f 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) | |||
476 | return 0; | 476 | return 0; |
477 | } | 477 | } |
478 | 478 | ||
479 | static const struct of_device_id rcar_thermal_dt_ids[] __devinitconst = { | ||
480 | { .compatible = "renesas,rcar-thermal", }, | ||
481 | {}, | ||
482 | }; | ||
483 | MODULE_DEVICE_TABLE(of, rcar_thermal_dt_ids); | ||
484 | |||
479 | static struct platform_driver rcar_thermal_driver = { | 485 | static struct platform_driver rcar_thermal_driver = { |
480 | .driver = { | 486 | .driver = { |
481 | .name = "rcar_thermal", | 487 | .name = "rcar_thermal", |
488 | .of_match_table = rcar_thermal_dt_ids, | ||
482 | }, | 489 | }, |
483 | .probe = rcar_thermal_probe, | 490 | .probe = rcar_thermal_probe, |
484 | .remove = rcar_thermal_remove, | 491 | .remove = rcar_thermal_remove, |