]> git.baikalelectronics.ru Git - kernel.git/commit
platform-msi: Allocate MSI device data on first use
authorThomas Gleixner <tglx@linutronix.de>
Fri, 10 Dec 2021 22:18:58 +0000 (23:18 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 16 Dec 2021 21:16:38 +0000 (22:16 +0100)
commitdb976f4b4e7160f5a5fb18e50b98bbcc6e749cf5
treec41f68c7a26722023123b6c96034917b3e56c8ab
parenta3bf0df72fa4911139c5e747c3fc297e7b8f37c3
platform-msi: Allocate MSI device data on first use

Allocate the MSI device data on first invocation of the allocation function
for platform MSI private data.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20211210221813.805529729@linutronix.de
drivers/base/platform-msi.c