Re: [PATCH] most: core: use function subsys_initcall()

2020-04-24 Thread Greg KH
On Fri, Apr 24, 2020 at 04:12:15PM +0200, Christian Gromm wrote: > This patch replaces function module_init() with subsys_initcall(). > It is needed to ensure that the core module of the driver is > initialized before a component tries to register with the core. This > leads to a NULL pointer deref

[PATCH] most: core: use function subsys_initcall()

2020-04-24 Thread Christian Gromm
This patch replaces function module_init() with subsys_initcall(). It is needed to ensure that the core module of the driver is initialized before a component tries to register with the core. This leads to a NULL pointer dereference if the driver is configured as in-tree. Signed-off-by: Christian