[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1394698031-1313-2-git-send-email-thierry.reding@gmail.com>
Date: Thu, 13 Mar 2014 09:07:11 +0100
From: Thierry Reding <thierry.reding@...il.com>
To: Dmitry Eremin-Solenikov <dbaryshkov@...il.com>,
David Woodhouse <dwmw2@...radead.org>
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH 2/2] power: bq24190: Remove empty OF device table
From: Thierry Reding <treding@...dia.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@...dia.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists