@@ -504,7 +504,6 @@ static ssize_t bq24190_sysfs_show(struct device *dev,
504
504
else
505
505
count = sysfs_emit (buf , "%hhx\n" , v );
506
506
507
- pm_runtime_mark_last_busy (bdi -> dev );
508
507
pm_runtime_put_autosuspend (bdi -> dev );
509
508
510
509
return count ;
@@ -535,7 +534,6 @@ static ssize_t bq24190_sysfs_store(struct device *dev,
535
534
if (ret )
536
535
count = ret ;
537
536
538
- pm_runtime_mark_last_busy (bdi -> dev );
539
537
pm_runtime_put_autosuspend (bdi -> dev );
540
538
541
539
return count ;
@@ -562,7 +560,6 @@ static int bq24190_set_otg_vbus(struct bq24190_dev_info *bdi, bool enable)
562
560
else
563
561
ret = bq24190_charger_set_charge_type (bdi , & val );
564
562
565
- pm_runtime_mark_last_busy (bdi -> dev );
566
563
pm_runtime_put_autosuspend (bdi -> dev );
567
564
568
565
return ret ;
@@ -605,7 +602,6 @@ static int bq24296_set_otg_vbus(struct bq24190_dev_info *bdi, bool enable)
605
602
}
606
603
607
604
out :
608
- pm_runtime_mark_last_busy (bdi -> dev );
609
605
pm_runtime_put_autosuspend (bdi -> dev );
610
606
611
607
return ret ;
@@ -638,7 +634,6 @@ static int bq24190_vbus_is_enabled(struct regulator_dev *dev)
638
634
BQ24190_REG_POC_CHG_CONFIG_MASK ,
639
635
BQ24190_REG_POC_CHG_CONFIG_SHIFT , & val );
640
636
641
- pm_runtime_mark_last_busy (bdi -> dev );
642
637
pm_runtime_put_autosuspend (bdi -> dev );
643
638
644
639
if (ret )
@@ -675,7 +670,6 @@ static int bq24296_vbus_is_enabled(struct regulator_dev *dev)
675
670
BQ24296_REG_POC_OTG_CONFIG_MASK ,
676
671
BQ24296_REG_POC_OTG_CONFIG_SHIFT , & val );
677
672
678
- pm_runtime_mark_last_busy (bdi -> dev );
679
673
pm_runtime_put_autosuspend (bdi -> dev );
680
674
681
675
if (ret )
@@ -1376,7 +1370,6 @@ static int bq24190_charger_get_property(struct power_supply *psy,
1376
1370
ret = - ENODATA ;
1377
1371
}
1378
1372
1379
- pm_runtime_mark_last_busy (bdi -> dev );
1380
1373
pm_runtime_put_autosuspend (bdi -> dev );
1381
1374
1382
1375
return ret ;
@@ -1419,7 +1412,6 @@ static int bq24190_charger_set_property(struct power_supply *psy,
1419
1412
ret = - EINVAL ;
1420
1413
}
1421
1414
1422
- pm_runtime_mark_last_busy (bdi -> dev );
1423
1415
pm_runtime_put_autosuspend (bdi -> dev );
1424
1416
1425
1417
return ret ;
@@ -1682,7 +1674,6 @@ static int bq24190_battery_get_property(struct power_supply *psy,
1682
1674
ret = - ENODATA ;
1683
1675
}
1684
1676
1685
- pm_runtime_mark_last_busy (bdi -> dev );
1686
1677
pm_runtime_put_autosuspend (bdi -> dev );
1687
1678
1688
1679
return ret ;
@@ -1713,7 +1704,6 @@ static int bq24190_battery_set_property(struct power_supply *psy,
1713
1704
ret = - EINVAL ;
1714
1705
}
1715
1706
1716
- pm_runtime_mark_last_busy (bdi -> dev );
1717
1707
pm_runtime_put_autosuspend (bdi -> dev );
1718
1708
1719
1709
return ret ;
@@ -1861,7 +1851,6 @@ static irqreturn_t bq24190_irq_handler_thread(int irq, void *data)
1861
1851
return IRQ_NONE ;
1862
1852
}
1863
1853
bq24190_check_status (bdi );
1864
- pm_runtime_mark_last_busy (bdi -> dev );
1865
1854
pm_runtime_put_autosuspend (bdi -> dev );
1866
1855
bdi -> irq_event = false;
1867
1856
@@ -2188,7 +2177,6 @@ static int bq24190_probe(struct i2c_client *client)
2188
2177
2189
2178
enable_irq_wake (client -> irq );
2190
2179
2191
- pm_runtime_mark_last_busy (dev );
2192
2180
pm_runtime_put_autosuspend (dev );
2193
2181
2194
2182
return 0 ;
@@ -2275,7 +2263,6 @@ static __maybe_unused int bq24190_pm_suspend(struct device *dev)
2275
2263
bq24190_register_reset (bdi );
2276
2264
2277
2265
if (error >= 0 ) {
2278
- pm_runtime_mark_last_busy (bdi -> dev );
2279
2266
pm_runtime_put_autosuspend (bdi -> dev );
2280
2267
}
2281
2268
@@ -2300,7 +2287,6 @@ static __maybe_unused int bq24190_pm_resume(struct device *dev)
2300
2287
bq24190_read (bdi , BQ24190_REG_SS , & bdi -> ss_reg );
2301
2288
2302
2289
if (error >= 0 ) {
2303
- pm_runtime_mark_last_busy (bdi -> dev );
2304
2290
pm_runtime_put_autosuspend (bdi -> dev );
2305
2291
}
2306
2292
0 commit comments