]> git.baikalelectronics.ru Git - uboot.git/commit
net: ravb: Fix reset GPIO handling
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Thu, 9 Nov 2017 21:49:19 +0000 (22:49 +0100)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Thu, 30 Nov 2017 01:32:34 +0000 (02:32 +0100)
commitb775857f5037c0dbaaf263a44809c612d17b0ccb
treed0bca742828f8c3c10c1fdef8311e2091a1a0176
parente95598b6c27c7266ccfe5671bf8c87bee5884bff
net: ravb: Fix reset GPIO handling

Fix handling of the reset GPIO. Drop the _nodev() suffix from the
gpio_request_by_name() call as there is now a proper DM capable
GPIO driver. Also check if the GPIO is valid before freeing it in
remove path, otherwise U-Boot will crash.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
drivers/net/ravb.c