[2/4] Thermal: dove: Remove redundant use of of_match_ptr

Message ID 1368700091-6084-2-git-send-email-sachin.kamat@linaro.org
State Accepted
Headers show

Commit Message

Sachin Kamat May 16, 2013, 10:28 a.m.
'dove_thermal_id_table' is always compiled in and the driver
is dependent on OF. Hence use of of_match_ptr is unnecessary.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Andrew Lunn <andrew@lunn.ch>
---
 drivers/thermal/dove_thermal.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Eduardo Valentin May 23, 2013, 2:58 p.m. | #1
Rui,

On 16-05-2013 06:28, Sachin Kamat wrote:
> 'dove_thermal_id_table' is always compiled in and the driver
> is dependent on OF. Hence use of of_match_ptr is unnecessary.
> 
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> Cc: Andrew Lunn <andrew@lunn.ch>

Acked-by: Eduardo Valentin <eduardo.valentin@ti.com>


> ---



>  drivers/thermal/dove_thermal.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/thermal/dove_thermal.c b/drivers/thermal/dove_thermal.c
> index 900479e..49f9a0a 100644
> --- a/drivers/thermal/dove_thermal.c
> +++ b/drivers/thermal/dove_thermal.c
> @@ -194,7 +194,7 @@ static struct platform_driver dove_thermal_driver = {
>  	.driver = {
>  		.name = "dove_thermal",
>  		.owner = THIS_MODULE,
> -		.of_match_table = of_match_ptr(dove_thermal_id_table),
> +		.of_match_table = dove_thermal_id_table,
>  	},
>  };
>  
>

Patch

diff --git a/drivers/thermal/dove_thermal.c b/drivers/thermal/dove_thermal.c
index 900479e..49f9a0a 100644
--- a/drivers/thermal/dove_thermal.c
+++ b/drivers/thermal/dove_thermal.c
@@ -194,7 +194,7 @@  static struct platform_driver dove_thermal_driver = {
 	.driver = {
 		.name = "dove_thermal",
 		.owner = THIS_MODULE,
-		.of_match_table = of_match_ptr(dove_thermal_id_table),
+		.of_match_table = dove_thermal_id_table,
 	},
 };