]> bbs.cooldavid.org Git - net-next-2.6.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)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 25 Aug 2010 18:33:20 +0000 (14:33 -0400)
commit11791a6f7534906b4a01ffb54ba0b02ca39398ef
treeffda98258e1494287e0d2c29b55c2c71735d0e5f
parent049fbfeeb5c7edb260848a89af4895e3dabfa77e
p54usb: fix off-by-one on !CONFIG_PM

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.

Cc: <stable@kernel.org>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/p54/p54usb.c