module: Fix adding module to list after layout
During load_module(), the 'this_module' section is relocated, but the
pointer to the module struct isn't updated to account account for the
move. Do so before adding the module to the module_list.

As a side effect of properly pointing to the relocated module struct, we
no longer need to manually search for and fixup the init_module symbol,
so remove that code.

Signed-off-by: David Dgien <dgienda125@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent e84ccc4 commit c788931fb16f136c2e09e59022dabb242d4d3ba3
@David Dgien David Dgien authored on 29 Jun 2020
Sascha Hauer committed on 1 Jul 2020
Showing 1 changed file
View
common/module.c