Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ea50e9d3 authored by Grigoryev Denis's avatar Grigoryev Denis Committed by Lee Jones
Browse files

mfd: tps6105x: Fix possible NULL pointer access



tps6105 driver provides two cells. One is for GPIO and another one is
for selected mode depending on platform data. When tps6105x is used in
GPIO-only mode, this driver calls mfd_add_devices() with mfd_cell
.name == NULL. This value causes an oops in platform_device_register()
later.

The following patch adds a mfd_cell for each possible mode thereby
excluding .name assignment in runtime.

Signed-off-by: default avatarDenis Grigoryev <grigoryev@fastwel.ru>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent ced7e093
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment