浏览代码

[ARM] 2963/1: S3C2410 - add .owner field to device_driver

Patch from Ben Dooks

Add initialisation of .owner field so that
the device driver can be referenced to the
module that owns it.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Ben Dooks 19 年之前
父节点
当前提交
cdfc8f5079
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/char/s3c2410-rtc.c

+ 1 - 0
drivers/char/s3c2410-rtc.c

@@ -564,6 +564,7 @@ static int s3c2410_rtc_resume(struct device *dev, u32 level)
 
 
 static struct device_driver s3c2410_rtcdrv = {
 static struct device_driver s3c2410_rtcdrv = {
 	.name		= "s3c2410-rtc",
 	.name		= "s3c2410-rtc",
+	.owner		= THIS_MODULE,
 	.bus		= &platform_bus_type,
 	.bus		= &platform_bus_type,
 	.probe		= s3c2410_rtc_probe,
 	.probe		= s3c2410_rtc_probe,
 	.remove		= s3c2410_rtc_remove,
 	.remove		= s3c2410_rtc_remove,