HID: sony: fix uninitialized per-controller spinlock

Per-controller spinlock needs to be properly initialized during device probe.

[[email protected]: massage changelog]
[[email protected]: drop hunk that has already been applied by previous
 patch]
Signed-off-by: Frank Praznik <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
This commit is contained in:
Frank Praznik 2015-02-22 20:42:46 -05:00 • committed by Jiri Kosina
commit b94993f6fb

View file

@ -1944,6 +1944,8 @@ static int sony_probe(struct hid_device *hdev, const struct hid_device_id *id)
return -ENOMEM;
}
spin_lock_init(&sc->lock);
sc->quirks = quirks;
hid_set_drvdata(hdev, sc);
sc->hdev = hdev;