mfd: max77686: Don't define dummy function if OF isn't enabled
authorJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Fri, 4 Jul 2014 20:24:06 +0000 (22:24 +0200)
committerLee Jones <lee.jones@linaro.org>
Mon, 21 Jul 2014 15:54:28 +0000 (16:54 +0100)
commit154409e4502621022dd6c84a091da350bc80d265
treef2bb29ae3f726401421684f681d1d49dc6421d63
parent2b52b5d5f25108739954f0c544dfe72f08a3aacc
mfd: max77686: Don't define dummy function if OF isn't enabled

When the CONFIG_OF option was not enabled, a dummy function
max77686_i2c_parse_dt_pdata() was defined since this is called
unconditionally on probe(). Just always define the real function
and conditionally call it if CONFIG_OF is enabled instead.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/max77686.c