[PATCH 2/2] power: bq24190: Remove empty OF device table
From: Thierry Reding
Date: Thu Mar 13 2014 - 04:08:05 EST
From: Thierry Reding <treding@xxxxxxxxxx>
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@xxxxxxxxxx>
---
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/