]> git.sur5r.net Git - u-boot/commit
dm: gpio: Add a comment about not copying some drivers
authorSimon Glass <sjg@chromium.org>
Sun, 17 Sep 2017 22:54:52 +0000 (16:54 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 9 Oct 2017 02:41:08 +0000 (20:41 -0600)
commit4d686041895a8fd419bbc3842856239c6298d1f2
tree7f3d30f74760f5ee7c8f872116af4d1df7772fb1
parent1ba214767d85ed37c0af3ac41d2e8617a609741f
dm: gpio: Add a comment about not copying some drivers

These three drivers all use U_BOOT_DEVICE rather than device tree to
create devices, so have to do manual allocation of platform data. This is
not true for new platforms.

Add a more explicit comment so that people do not copy this approach with
new boards.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reported-by: Adam Ford <aford173@gmail.com>
drivers/gpio/imx_rgpio2p.c
drivers/gpio/mxc_gpio.c
drivers/gpio/omap_gpio.c