diff options
Diffstat (limited to 'drivers/acpi/button.c')
| -rw-r--r-- | drivers/acpi/button.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/button.c b/drivers/acpi/button.c index 1575a9b51f1d..71ef9cd0735f 100644 --- a/drivers/acpi/button.c +++ b/drivers/acpi/button.c | |||
| @@ -338,7 +338,8 @@ static int acpi_button_add(struct acpi_device *device) | |||
| 338 | { | 338 | { |
| 339 | struct acpi_button *button; | 339 | struct acpi_button *button; |
| 340 | struct input_dev *input; | 340 | struct input_dev *input; |
| 341 | char *hid, *name, *class; | 341 | const char *hid = acpi_device_hid(device); |
| 342 | char *name, *class; | ||
| 342 | int error; | 343 | int error; |
| 343 | 344 | ||
| 344 | button = kzalloc(sizeof(struct acpi_button), GFP_KERNEL); | 345 | button = kzalloc(sizeof(struct acpi_button), GFP_KERNEL); |
| @@ -353,7 +354,6 @@ static int acpi_button_add(struct acpi_device *device) | |||
| 353 | goto err_free_button; | 354 | goto err_free_button; |
| 354 | } | 355 | } |
| 355 | 356 | ||
| 356 | hid = acpi_device_hid(device); | ||
| 357 | name = acpi_device_name(device); | 357 | name = acpi_device_name(device); |
| 358 | class = acpi_device_class(device); | 358 | class = acpi_device_class(device); |
| 359 | 359 | ||
