From 8abd537256f58c1e502c01fc4112afcf7c4eda96 Mon Sep 17 00:00:00 2001 From: YueHaibing Date: Wed, 24 Apr 2019 02:51:41 +0000 Subject: [PATCH] staging: kpc2000: fix platform_no_drv_owner.cocci warnings Remove .owner field if calls are used which set it automatically Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci Signed-off-by: YueHaibing Signed-off-by: Greg Kroah-Hartman --- drivers/staging/kpc2000/kpc_spi/spi_driver.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/kpc2000/kpc_spi/spi_driver.c b/drivers/staging/kpc2000/kpc_spi/spi_driver.c index b38149b752fb..63b4616bf538 100644 --- a/drivers/staging/kpc2000/kpc_spi/spi_driver.c +++ b/drivers/staging/kpc2000/kpc_spi/spi_driver.c @@ -496,7 +496,6 @@ kp_spi_remove(struct platform_device *pldev) static struct platform_driver kp_spi_driver = { .driver = { .name = KP_DRIVER_NAME_SPI, - .owner = THIS_MODULE, }, .probe = kp_spi_probe, .remove = kp_spi_remove, -- 2.20.1