]> git.karo-electronics.de Git - linux-beck.git/commitdiff
thermal: rcar: move rcar_thermal_dt_ids to upside
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 15 Dec 2015 01:17:07 +0000 (01:17 +0000)
committerEduardo Valentin <edubezval@gmail.com>
Thu, 7 Jan 2016 02:06:38 +0000 (18:06 -0800)
This patch is prepare for of-thermal support.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/rcar_thermal.c

index 13d01edc7a043812611719bf7a342260f09ababa..96707a6abd7f1aeb38f58be1af84e7931928dc0f 100644 (file)
@@ -81,6 +81,12 @@ struct rcar_thermal_priv {
 # define rcar_force_update_temp(priv)  0
 #endif
 
+static const struct of_device_id rcar_thermal_dt_ids[] = {
+       { .compatible = "renesas,rcar-thermal", },
+       {},
+};
+MODULE_DEVICE_TABLE(of, rcar_thermal_dt_ids);
+
 /*
  *             basic functions
  */
@@ -484,12 +490,6 @@ error_unregister:
        return ret;
 }
 
-static const struct of_device_id rcar_thermal_dt_ids[] = {
-       { .compatible = "renesas,rcar-thermal", },
-       {},
-};
-MODULE_DEVICE_TABLE(of, rcar_thermal_dt_ids);
-
 static struct platform_driver rcar_thermal_driver = {
        .driver = {
                .name   = "rcar_thermal",