Messages in this thread Patch in this message | | | From | Li Zetao <> | Subject | [PATCH -next] bus: fsl-mc: Remove redundant initialization owner in dprc_driver | Date | Fri, 4 Aug 2023 18:05:06 +0800 |
| |
The fsl_mc_driver_register() will set "THIS_MODULE" to driver.owner when register a fsl_mc_driver driver, so it is redundant initialization to set driver.owner in dprc_driver statement. Remove it for clean code.
Signed-off-by: Li Zetao <lizetao1@huawei.com> --- drivers/bus/fsl-mc/dprc-driver.c | 1 - 1 file changed, 1 deletion(-)
diff --git a/drivers/bus/fsl-mc/dprc-driver.c b/drivers/bus/fsl-mc/dprc-driver.c index 4b68c84ef485..6377ad52ad5a 100644 --- a/drivers/bus/fsl-mc/dprc-driver.c +++ b/drivers/bus/fsl-mc/dprc-driver.c @@ -870,7 +870,6 @@ static const struct fsl_mc_device_id match_id_table[] = { static struct fsl_mc_driver dprc_driver = { .driver = { .name = FSL_MC_DPRC_DRIVER_NAME, - .owner = THIS_MODULE, .pm = NULL, }, .match_id_table = match_id_table, -- 2.34.1
| |