]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: ns16550: Correct the probe logic for platform data
authorSimon Glass <sjg@chromium.org>
Thu, 23 Oct 2014 03:37:05 +0000 (21:37 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 24 Oct 2014 01:29:07 +0000 (19:29 -0600)
commit11c1a87893a1005180e9609925b35cee241ec88c
treeec09f81c2279604c7b1655f7f352f16ce3ab0d24
parent167efe01bc5a9de2aa4f7ce2663dbe398f9d43f6
dm: ns16550: Correct the probe logic for platform data

The probe logic sets up the pointer to the platform data in the device
tree decode method. It should be done in the probe() method, and anyway
the device tree decode method can't be used when CONFIG_OF_CONTROL is
not enabled.

Fix these two problems.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@ti.com>
drivers/serial/ns16550.c