diff options
| author | Michał Kępień <kernel@kempniu.pl> | 2017-02-24 13:33:08 +0300 |
|---|---|---|
| committer | Darren Hart <dvhart@infradead.org> | 2017-03-15 08:57:11 +0300 |
| commit | 175cc9b72fb5ca65dfb79e7c2500304476486717 (patch) | |
| tree | 85110439a3562d93d71bc9fb9e3ce882dbfdce01 /include | |
| parent | 99a75e7b05c764b82a1ba4b632c66d1b58b8fff7 (diff) | |
| download | linux-175cc9b72fb5ca65dfb79e7c2500304476486717.tar.xz | |
platform/x86: intel-hid: use devm_input_allocate_device() for HID events input device
intel_hid_input_setup() is only called from the platform driver's .probe
callback. Use the devm variant of input_allocate_device() for
allocating memory for the HID events input device in order to simplify
two error paths and get rid of intel_hid_input_destroy().
Signed-off-by: Michał Kępień <kernel@kempniu.pl>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-and-tested-by: Alex Hung <alex.hung@canonical.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
