aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus
diff options
context:
space:
mode:
authorzhong jiang <zhongjiang@huawei.com>2018-09-12 11:40:28 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-09-14 10:45:51 +0200
commitfaeeeea89670b39c7afa2cc567c3917c511608c4 (patch)
treea806a08f496e943129aee9dfc1c291345f37cf9d /drivers/staging/greybus
parentstaging: wilc1000: fix null checks on wilc (diff)
downloadlinux-dev-faeeeea89670b39c7afa2cc567c3917c511608c4.tar.xz
linux-dev-faeeeea89670b39c7afa2cc567c3917c511608c4.zip
staging: remove unneeded static set .owner field in platform_driver
platform_driver_register will set the .owner field. So it is safe to remove the redundant assignment. The issue is detected with the help of Coccinelle. Signed-off-by: zhong jiang <zhongjiang@huawei.com> Acked-by: Vaibhav Agarwal <vaibhav.sr@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/greybus')
-rw-r--r--drivers/staging/greybus/audio_codec.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/greybus/audio_codec.c b/drivers/staging/greybus/audio_codec.c
index 35acd55ca5ab..08746c85dea6 100644
--- a/drivers/staging/greybus/audio_codec.c
+++ b/drivers/staging/greybus/audio_codec.c
@@ -1087,7 +1087,6 @@ static const struct of_device_id greybus_asoc_machine_of_match[] = {
static struct platform_driver gbaudio_codec_driver = {
.driver = {
.name = "apb-dummy-codec",
- .owner = THIS_MODULE,
#ifdef CONFIG_PM
.pm = &gbaudio_codec_pm_ops,
#endif