USB: bcma: switch to GPIO descriptor for power control
authorRafał Miłecki <zajec5@gmail.com>
Sun, 1 Nov 2015 09:04:41 +0000 (10:04 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Dec 2015 22:48:26 +0000 (14:48 -0800)
commit9faae5a37b266afca6914163316856c5ed4ec366
treee79425bf277d13755f4eb9467eac0201b1cdfbd2
parent6fb8ac81cb3125aafc7136f2ef0145da792bab94
USB: bcma: switch to GPIO descriptor for power control

So far we were using simple (legacy) GPIO functions & some poor logic to
control power. It got many drawbacks: we were ignoring OF flags
(GPIO_ACTIVE_LOW), we were not setting direction to output and we were
assuming gpio_request success all the time.
Fix it by switching to gpiod functions and adding appropriate checks.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/bcma-hcd.c