aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/randomize_layout_plugin.c
diff options
context:
space:
mode:
authorHans de Goede <[email protected]>2018-01-22 17:42:18 +0000
committerSebastian Reichel <[email protected]>2018-01-23 15:51:22 +0000
commit2d7e6a8376c0eaf260f54b265acadd2e185d7b82 (patch)
treeb5cee38764ae38d82672d47d77d0e05494b7088e /scripts/gcc-plugins/randomize_layout_plugin.c
parentpower: supply: max17042_battery: Check battery current for status when supplied (diff)
downloadkernel-2d7e6a8376c0eaf260f54b265acadd2e185d7b82.tar.gz
kernel-2d7e6a8376c0eaf260f54b265acadd2e185d7b82.zip
power: supply: max17042_battery: Always fall back to default platform-data
It is possible to have CONFIG_OF enabled on x86 builds, where we have no firmware provided max17042_platform_data. The CONFIG_OF implementation of max17042_get_pdata would return NULL in this case, causing the probe to fail. Instead always fallback to the default platform-data, as used on x86 sofar, when there is no firmware provided pdata, independent of CONFIG_OF. Signed-off-by: Hans de Goede <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions