diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 35046adf1294..d941023c5628 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -2442,12 +2442,10 @@ int hid_add_device(struct hid_device *hdev) hid_warn(hdev, "bad device descriptor (%d)\n", ret); } - hdev->id = atomic_inc_return(&id); - /* XXX hack, any other cleaner solution after the driver core * is converted to allow more than 20 bytes as the device name? */ dev_set_name(&hdev->dev, "%04X:%04X:%04X.%04X", hdev->bus, - hdev->vendor, hdev->product, hdev->id); + hdev->vendor, hdev->product, atomic_inc_return(&id)); hid_debug_register(hdev, dev_name(&hdev->dev)); ret = device_add(&hdev->dev); diff --git a/include/linux/hid.h b/include/linux/hid.h index 9bbc3455d1c6..5ac7863d01aa 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h @@ -633,8 +633,6 @@ struct hid_device { /* device report descriptor */ spinlock_t debug_list_lock; wait_queue_head_t debug_wait; - unsigned int id; /* system unique id */ - ANDROID_KABI_RESERVE(1); ANDROID_KABI_RESERVE(2); };