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)
commit770f0baaee0c511d0d466082e72815ed861e301f
treea3cb28c6f14dd7bc7dfab545660f46659ce56a38
parent5dc2470c602da8851907ec18942cd876c3b4ecc1
USB: at91: at91-ohci: fix set/get power

in commit aa6e52a35 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