Commit 7dead80c authored by Ben Dooks's avatar Ben Dooks Committed by Russell King

[ARM] 2964/1: S3C2410 - serial: add .owner to driver

Patch from Ben Dooks

Initialise the driver's .owner field so that
the device driver can be referenced to the
module that owns it
Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent cdfc8f50
...@@ -1235,6 +1235,7 @@ static int s3c2400_serial_probe(struct device *dev) ...@@ -1235,6 +1235,7 @@ static int s3c2400_serial_probe(struct device *dev)
static struct device_driver s3c2400_serial_drv = { static struct device_driver s3c2400_serial_drv = {
.name = "s3c2400-uart", .name = "s3c2400-uart",
.owner = THIS_MODULE,
.bus = &platform_bus_type, .bus = &platform_bus_type,
.probe = s3c2400_serial_probe, .probe = s3c2400_serial_probe,
.remove = s3c24xx_serial_remove, .remove = s3c24xx_serial_remove,
...@@ -1338,6 +1339,7 @@ static int s3c2410_serial_probe(struct device *dev) ...@@ -1338,6 +1339,7 @@ static int s3c2410_serial_probe(struct device *dev)
static struct device_driver s3c2410_serial_drv = { static struct device_driver s3c2410_serial_drv = {
.name = "s3c2410-uart", .name = "s3c2410-uart",
.owner = THIS_MODULE,
.bus = &platform_bus_type, .bus = &platform_bus_type,
.probe = s3c2410_serial_probe, .probe = s3c2410_serial_probe,
.remove = s3c24xx_serial_remove, .remove = s3c24xx_serial_remove,
...@@ -1499,6 +1501,7 @@ static int s3c2440_serial_probe(struct device *dev) ...@@ -1499,6 +1501,7 @@ static int s3c2440_serial_probe(struct device *dev)
static struct device_driver s3c2440_serial_drv = { static struct device_driver s3c2440_serial_drv = {
.name = "s3c2440-uart", .name = "s3c2440-uart",
.owner = THIS_MODULE,
.bus = &platform_bus_type, .bus = &platform_bus_type,
.probe = s3c2440_serial_probe, .probe = s3c2440_serial_probe,
.remove = s3c24xx_serial_remove, .remove = s3c24xx_serial_remove,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment