Re: [PATCH v3] mfd: tps6105x: Fix NULL pointer access.

2015-09-22 Thread Lee Jones
On Mon, 21 Sep 2015, Grigoryev Denis wrote: > When tps6105x used in TPS6105X_MODE_SHUTDOWN mode the driver calls > mfd_add_devices() with mfd_cell->name == NULL, that causes an ooops in > platform_device_register() later. > > This patch adds an mfd_cell for each possible mode thereby excluding >

[PATCH v3] mfd: tps6105x: Fix NULL pointer access.

2015-09-21 Thread Grigoryev Denis
When tps6105x used in TPS6105X_MODE_SHUTDOWN mode the driver calls mfd_add_devices() with mfd_cell->name == NULL, that causes an ooops in platform_device_register() later. This patch adds an mfd_cell for each possible mode thereby excluding .name assignment in runtime. Signed-off-by: Denis Grigor