]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/power/bq24190_charger.c
Merge tag 'devicetree-for-4.3' of git://git.kernel.org/pub/scm/linux/kernel/git/robh...
[karo-tx-linux.git] / drivers / power / bq24190_charger.c
index 052db78c373650979f620cd031cf7f7b0fa067b7..469a452cbe1004025d86326222671f11e0674b52 100644 (file)
@@ -902,7 +902,7 @@ static int bq24190_charger_property_is_writeable(struct power_supply *psy,
 }
 
 static enum power_supply_property bq24190_charger_properties[] = {
-       POWER_SUPPLY_PROP_TYPE,
+       POWER_SUPPLY_PROP_CHARGE_TYPE,
        POWER_SUPPLY_PROP_HEALTH,
        POWER_SUPPLY_PROP_ONLINE,
        POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT,
@@ -1515,6 +1515,7 @@ static const struct i2c_device_id bq24190_i2c_ids[] = {
        { "bq24190", BQ24190_REG_VPRS_PN_24190 },
        { },
 };
+MODULE_DEVICE_TABLE(i2c, bq24190_i2c_ids);
 
 #ifdef CONFIG_OF
 static const struct of_device_id bq24190_of_match[] = {
@@ -1534,7 +1535,6 @@ static struct i2c_driver bq24190_driver = {
        .id_table       = bq24190_i2c_ids,
        .driver = {
                .name           = "bq24190-charger",
-               .owner          = THIS_MODULE,
                .pm             = &bq24190_pm_ops,
                .of_match_table = of_match_ptr(bq24190_of_match),
        },