]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/commit
p54usb: fix off-by-one on !CONFIG_PM
authorChristian Lamparter <chunkeey@googlemail.com>
Sun, 22 Aug 2010 20:41:33 +0000 (22:41 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 22 Nov 2010 19:03:06 +0000 (11:03 -0800)
commitf94de64b60a85af4053689b4d9c516dd98c5b1c6
treef8b2775d487d67a762adc9ed121c50f6d5a55ce4
parent6021775fb632a6d40271c1bb2694b92df5b9a414
p54usb: fix off-by-one on !CONFIG_PM

commit 11791a6f7534906b4a01ffb54ba0b02ca39398ef upstream.

The ISL3887 chip needs a USB reset, whenever the
usb-frontend module "p54usb" is reloaded.

This patch fixes an off-by-one bug, if the user
is running a kernel without the CONFIG_PM option
set and for some reason (e.g.: compat-wireless)
wants to switch between different p54usb modules.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/p54/p54usb.c