Skip to content
Snippets Groups Projects
Commit 1ba21476 authored by Simon Glass's avatar Simon Glass
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
Reported-by: default avatarAdam Ford <aford173@gmail.com>
parent 085391b2
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment