of: device: Support loading a module with OF based modalias
authorStephen Boyd <stephen.boyd@linaro.org>
Wed, 28 Dec 2016 22:56:47 +0000 (14:56 -0800)
committerPeter Chen <peter.chen@nxp.com>
Fri, 20 Jan 2017 03:23:51 +0000 (11:23 +0800)
commit9c829c097f2f1cbebcfff69a7254b1df9852fe4e
tree0c2329e62da791c3488f07b42df3f4a41f24a984
parent3f991aa0b665c8e9bb702421a4e5005c3588fb62
of: device: Support loading a module with OF based modalias

In the case of ULPI devices, we want to be able to load the
driver before registering the device so that we don't get stuck
in a loop waiting for the phy module to appear and failing usb
controller probe. Currently we request the ulpi module via the
ulpi ids, but in the DT case we might need to request it with the
OF based modalias instead. Add a common function that allows
anyone to request a module with the OF based modalias.

Acked-by: Rob Herring <robh@kernel.org>
Cc: <devicetree@vger.kernel.org>
Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/of/device.c
include/linux/of_device.h