lkml.org 
[lkml]   [2014]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 2/2] power: bq24190: Remove empty OF device table
Date
From: Thierry Reding <treding@nvidia.com>

The driver already uses the of_match_ptr() macro that evaluates to NULL
when DT is disabled, so defining an empty device table is unnecessary.

Signed-off-by: Thierry Reding <treding@nvidia.com>
---
drivers/power/bq24190_charger.c | 4 ----
1 file changed, 4 deletions(-)

diff --git a/drivers/power/bq24190_charger.c b/drivers/power/bq24190_charger.c
index f5b21c0d0ba3..04403ce801c0 100644
--- a/drivers/power/bq24190_charger.c
+++ b/drivers/power/bq24190_charger.c
@@ -1517,10 +1517,6 @@ static const struct of_device_id bq24190_of_match[] = {
{ },
};
MODULE_DEVICE_TABLE(of, bq24190_of_match);
-#else
-static const struct of_device_id bq24190_of_match[] = {
- { },
-};
#endif

static struct i2c_driver bq24190_driver = {
--
1.8.4.2


\
 
 \ /
  Last update: 2014-03-13 09:41    [W:0.025 / U:0.828 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site