]> git.baikalelectronics.ru Git - kernel.git/commit
USB: at91: at91-ohci: fix set/get power
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Sat, 12 Nov 2011 15:46:13 +0000 (16:46 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Nov 2011 23:52:11 +0000 (15:52 -0800)
commita3d0dff1bbe38e53fc1dc303c8719e0c669bda95
treea3cb28c6f14dd7bc7dfab545660f46659ce56a38
parentac305fdf25e6200a85f9770bf7484bf0f80ed312
USB: at91: at91-ohci: fix set/get power

in commit bc134d842 we introduce the support of overcurrent notification
but the set and get of the power without checking if the gpio is valid or not

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ohci-at91.c