From: Axel Lin <[mailto:axel.lin@gmail.com]> Date: Wed, 19 Sep 2012 15:30:00 +0000 (+0100) Subject: HID: hid-sensor-hub: Remove hdev->claimed setting X-Git-Tag: v3.7-rc1~173^2~50^2~3 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=3f257caf2d18fb45ab8d0fbaf71812d2b403cd0d;p=~emulex%2Finfiniband.git HID: hid-sensor-hub: Remove hdev->claimed setting Current implementation of hid_hw_start() allows connect_mask to be 0. Setting hdev->claimed = HID_CLAIMED_INPUT before calling hid_hw_start() is not necessary. Remove it. Signed-off-by: Axel Lin Acked-by: Jiri Kosina Acked-by: Srinivas Pandruvada Signed-off-by: Jonathan Cameron --- diff --git a/drivers/hid/hid-sensor-hub.c b/drivers/hid/hid-sensor-hub.c index 22ec3c69a79..0e0fad0285a 100644 --- a/drivers/hid/hid-sensor-hub.c +++ b/drivers/hid/hid-sensor-hub.c @@ -530,7 +530,6 @@ static int sensor_hub_probe(struct hid_device *hdev, } INIT_LIST_HEAD(&hdev->inputs); - hdev->claimed = HID_CLAIMED_INPUT; ret = hid_hw_start(hdev, 0); if (ret) { hid_err(hdev, "hw start failed\n"); @@ -618,7 +617,6 @@ static void sensor_hub_remove(struct hid_device *hdev) int i; hid_dbg(hdev, " hardware removed\n"); - hdev->claimed &= ~HID_CLAIMED_INPUT; hid_hw_stop(hdev); hid_hw_close(hdev); spin_lock_irqsave(&data->lock, flags);