Messages in this thread Patch in this message | | | From | Thierry Reding <> | Subject | [PATCH 2/2] power: bq24190: Remove empty OF device table | Date | Thu, 13 Mar 2014 09:07:11 +0100 |
| |
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
| |