modpost: use sym_get_data() to get module device_table data
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 19 Jul 2022 16:53:00 +0000 (01:53 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 27 Jul 2022 12:18:00 +0000 (21:18 +0900)
commitabe864b8e19adf33b48997de8bc1a8f095390ade
tree699bb0948240cf9c2d2dea912c8f8638064fb929
parent5764f6626f5f334b27e168a33735b3899d08bcd2
modpost: use sym_get_data() to get module device_table data

Use sym_get_data() to replace the long code.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
scripts/mod/file2alias.c
scripts/mod/modpost.c
scripts/mod/modpost.h