]> git.baikalelectronics.ru Git - kernel.git/commit
platform/chrome: chromeos_laptop - parse DMI IRQ data once
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 20 Mar 2018 22:31:33 +0000 (15:31 -0700)
committerBenson Leung <bleung@chromium.org>
Tue, 10 Apr 2018 05:44:53 +0000 (22:44 -0700)
commita5754329c82e34a083b91e837cc1409a75b84877
treec2d058102560cbebfd2eb8610789bc028f4776c7
parentee3d0f0d4a114bc4a31524b0c751f7cec896d1c0
platform/chrome: chromeos_laptop - parse DMI IRQ data once

Instead of trying to parse DMI IRQ data every time we try to instantiate a
device, let's do it once, when we identify the device we are working with.
This allows us to mark chromeos_laptop_get_irq_from_dmi() as __init and
discard it once module is initialized.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Benson Leung <bleung@chromium.org>
drivers/platform/chrome/chromeos_laptop.c