diff options
| author | Hans de Goede <[email protected]> | 2022-02-01 14:06:54 +0100 |
|---|---|---|
| committer | Sebastian Reichel <[email protected]> | 2022-02-01 14:55:11 +0100 |
| commit | f481d5b80bd86ad39229c430d26513c096474578 (patch) | |
| tree | 6d59146e608e669fc5a0505c03d559c3f0b3b820 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | 06c75095e8147770626f7ca0b6352a718e62ba38 (diff) | |
power: supply: bq25890: Drop dev->platform_data == NULL check
Drop the "if (!dev->platform_data)" check, this seems to be an attempt
for allowing loading the driver on devices without devicetree stemming
from the initial commit of the driver (with the presumed intention being
the "return -ENODEV" else branch getting replaced with something else).
With the new "linux,skip-init" and "linux,read-back-settings" properties
the driver can actually supports devices without devicetree and this
check no longer makes sense.
While at it, also switch to dev_err_probe(), which is already used in
various other places in the driver.
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions