]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: core: Fix platform-device id generation
authorJohan Hovold <johan@kernel.org>
Fri, 26 Sep 2014 10:55:33 +0000 (12:55 +0200)
committerLee Jones <lee.jones@linaro.org>
Tue, 25 Nov 2014 16:18:43 +0000 (16:18 +0000)
commitd51b0a2f95116b5a58aaa446e4a06788406fff4d
tree403503551f4c2d3546858109201aa09172a2f777
parentc2273574d0197faf1f341a047ad4249409487775
mfd: core: Fix platform-device id generation

Make sure to always honour multi-function devices registered with
PLATFORM_DEVID_NONE (-1) or PLATFORM_DEVID_AUTO (-2) as id base. In this
case it does not make sense to append the cell id to the mfd-id base and
potentially change the requested behaviour.

Specifically this will allow multi-function devices to be registered
with PLATFORM_DEVID_AUTO while still having non-zero cell ids.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/mfd-core.c