diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2015-11-01 10:04:41 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-12-01 14:48:26 -0800 |
commit | 9faae5a37b266afca6914163316856c5ed4ec366 (patch) | |
tree | e79425bf277d13755f4eb9467eac0201b1cdfbd2 /drivers/usb/mon | |
parent | 6fb8ac81cb3125aafc7136f2ef0145da792bab94 (diff) | |
download | linux-9faae5a37b266afca6914163316856c5ed4ec366.tar.bz2 |
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>
Diffstat (limited to 'drivers/usb/mon')
0 files changed, 0 insertions, 0 deletions