regulator: mt6397: Add OF match table
authorJavier Martinez Canillas <javier@osg.samsung.com>
Mon, 25 Jan 2016 14:37:16 +0000 (11:37 -0300)
committerMark Brown <broonie@kernel.org>
Wed, 27 Jan 2016 15:29:07 +0000 (15:29 +0000)
commitabbf043b6508f6c90477a183b6975c269e913c7b
tree5f6ead852f7599e75deb108f3ce4f59a06bd1a34
parent288a89bf436fa3682742d41b2bc1b243ff2ded85
regulator: mt6397: Add OF match table

The Documentation/devicetree/bindings/regulator/mt6397-regulator.txt doc
mentions that a compatible "mediatek,mt6397-regulator" is required for
the MT6397 device node but the driver doesn't provide a OF match table so
the platform bus .match fallbacks to match using the driver name instead.

This also means that module auto-loading is broken for this driver since
the MFD driver that register the device, has a .of_compatible set so the
platform .uevent callback reports a OF modalias that's not in the module.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/mt6397-regulator.c