From: Michal Malý Date: Wed, 8 Apr 2015 20:56:53 +0000 (+0200) Subject: HID: hid-lg: Only one of LG_FF flags can be set for a given device X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=f4e1eb966256b15335054fac7b304f14e4965b5d;p=openwrt%2Fstaging%2Fblogic.git HID: hid-lg: Only one of LG_FF flags can be set for a given device Only one of LG_FF flags can be set for a given device. Signed-off-by: Michal Malý Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/hid-lg.c b/drivers/hid/hid-lg.c index d5022b3130d0..429340d809b5 100644 --- a/drivers/hid/hid-lg.c +++ b/drivers/hid/hid-lg.c @@ -714,11 +714,11 @@ static int lg_probe(struct hid_device *hdev, const struct hid_device_id *id) if (drv_data->quirks & LG_FF) ret = lgff_init(hdev); - if (drv_data->quirks & LG_FF2) + else if (drv_data->quirks & LG_FF2) ret = lg2ff_init(hdev); - if (drv_data->quirks & LG_FF3) + else if (drv_data->quirks & LG_FF3) ret = lg3ff_init(hdev); - if (drv_data->quirks & LG_FF4) + else if (drv_data->quirks & LG_FF4) ret = lg4ff_init(hdev); if (ret)