mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
thermal: rcar: add Device Tree support
Support for loading the Renesas R-Car thermal module via devicetree. Signed-off-by: Kuninori Morimoto <[email protected]> Signed-off-by: Zhang Rui <[email protected]>
This commit is contained in:
parent
e6e053f4e4
commit
76cc188749
2 changed files with 36 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue