]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: gpio: vybrid_gpio: Correct driver's use of bind() method
authorSimon Glass <sjg@chromium.org>
Sun, 17 Sep 2017 22:54:51 +0000 (16:54 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 9 Oct 2017 02:08:19 +0000 (20:08 -0600)
commit1ba214767d85ed37c0af3ac41d2e8617a609741f
tree9cf62eb5520cf76e6e3527f5a31141e805b8ca13
parent085391b22349b453aefad677853ff2d9955dd967
dm: gpio: vybrid_gpio: Correct driver's use of bind() method

It does not look like this driver needs to use a bind() method. It does
not manually create devices with device_bind() nor does it create devices
using U_BOOT_DEVICE(). It seems to only use device tree.

Therefore the manual allocation of platform data is not needed and is
confusing. Also platform data should be set up by the ofdata_to_platdata()
method, not bind().

Update the driver in case others use it as a model in future.

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