From: Sachin Kamat Date: Thu, 16 May 2013 10:28:11 +0000 (+0000) Subject: Thermal: spear: Remove redundant use of of_match_ptr X-Git-Tag: next-20130607~70^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5454f211ddc2a8ebc1eb20aa3866c4e9cf11405f;p=karo-tx-linux.git Thermal: spear: Remove redundant use of of_match_ptr 'spear_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 Cc: Vincenzo Frascino Cc: Viresh Kumar Acked-by: Viresh Kumar Acked-by: Eduardo Valentin Signed-off-by: Zhang Rui --- diff --git a/drivers/thermal/spear_thermal.c b/drivers/thermal/spear_thermal.c index 3c5ee5607977..838aff29b9d8 100644 --- a/drivers/thermal/spear_thermal.c +++ b/drivers/thermal/spear_thermal.c @@ -198,7 +198,7 @@ static struct platform_driver spear_thermal_driver = { .name = "spear_thermal", .owner = THIS_MODULE, .pm = &spear_thermal_pm_ops, - .of_match_table = of_match_ptr(spear_thermal_id_table), + .of_match_table = spear_thermal_id_table, }, };