Ben Cheatham 5621fafaac EINJ: Migrate to a platform driver
Change the EINJ module to install a platform device/driver on module
init and move the module init() and exit() functions to driver probe and
remove. This change allows the EINJ module to load regardless of whether
setting up EINJ succeeds, which allows dependent modules to still load
(i.e. the CXL core).

Since EINJ may no longer be initialized when the module loads, any
functions that are called from dependent/external modules should
safegaurd against the case EINJ didn't load.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Ben Cheatham <Benjamin.Cheatham@amd.com>
Link: https://lore.kernel.org/r/20240311142508.31717-2-Benjamin.Cheatham@amd.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2024-03-12 23:08:29 -07:00
..
2024-03-12 23:08:29 -07:00
2024-01-18 16:22:43 -08:00
2022-05-25 15:37:07 +02:00
2024-01-04 13:01:51 +01:00
2024-01-18 09:48:40 -08:00
2024-01-04 13:01:51 +01:00
2023-09-21 20:55:43 +02:00
2022-01-22 08:33:37 +02:00
2024-01-18 09:48:40 -08:00
2024-01-18 15:16:57 -08:00
2023-03-27 20:50:28 +02:00
2024-01-09 16:20:17 -08:00