diff options
author | Brian Harring <ferringb@gmail.com> | 2010-10-19 01:21:06 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-10-29 00:30:03 +0200 |
commit | a28dbea0ad3bd8144f3348eb5c20fabc2f12b4b5 (patch) | |
tree | d65e247eca308c886f9ebf966ab1353396bb7e61 /drivers/spi | |
parent | 11c39c4bde7acb727f7a7c6a4d7ffeb95b64dbb4 (diff) | |
download | lwn-a28dbea0ad3bd8144f3348eb5c20fabc2f12b4b5.tar.gz lwn-a28dbea0ad3bd8144f3348eb5c20fabc2f12b4b5.zip |
mfd: Add devices platform data when the cell data size is not 0
When the cell data_size is 0, the resulting platform_data pointer will be
set to ZERO_SIZE_PTR. That could be misleading for device drivers running
a NULL check on thei platform_data pointer before dereferencing it.
Signed-off-by: Brian Harring <ferringb@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/spi')
0 files changed, 0 insertions, 0 deletions