]> git.ipfire.org Git - thirdparty/linux.git/commit
platform/x86: xo15-ebook: Use devres-based resource management
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 15 May 2026 11:47:29 +0000 (13:47 +0200)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 20 May 2026 10:06:59 +0000 (13:06 +0300)
commit5cfb132da0afd3a711e2d5279243100102d2e836
tree0aaa3ef77a847b178b59432a472bb92c154b6aa2
parent4339fa4fae057c99cbcfd8127769219feb14964b
platform/x86: xo15-ebook: Use devres-based resource management

Use devm_kzalloc() and devm_input_allocate_device() in
ebook_switch_probe() for allocating the button object and the
input device, respectively, to simplify the rollback path in
that function and ebook_switch_remove().

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/6015220.DvuYhMxLoT@rafael.j.wysocki
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/xo15-ebook.c