Skip to content
Commit 46f107d0 authored by Robert Jarzmik's avatar Robert Jarzmik Committed by Lee Jones
Browse files

mfd: wm97xx-core: Platform data can be NULL

It is not mandatory that platform data is passed along the ac97
codec. Actually there are configuration without a battery connected to
the ADC of the codec.

This is for example the case for the PXA zylonite platform, so fix the
NULL dereferencing by adding a test.

Fixes: a5c6951c

 ("mfd: wm97xx-core: core support for wm97xx Codec")
Signed-off-by: default avatarRobert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent df7c3bf2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment