Skip to content

Commit

Permalink
spi: davinci: setup the driver owner
Browse files Browse the repository at this point in the history
Setup the owner member of the platform driver to THIS_MODULE
instead of leaving it NULL.

Signed-off-by: Brian Niebuhr <bniebuhr@efjohnson.com>
Tested-By: Michael Williamson <michael.williamson@criticallink.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
  • Loading branch information
Brian Niebuhr authored and Sekhar Nori committed Nov 18, 2010
1 parent 3f27b57 commit d8c174c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/spi/davinci_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,10 @@ static int __exit davinci_spi_remove(struct platform_device *pdev)
}

static struct platform_driver davinci_spi_driver = {
.driver.name = "spi_davinci",
.driver = {
.name = "spi_davinci",
.owner = THIS_MODULE,
},
.remove = __exit_p(davinci_spi_remove),
};

Expand Down

0 comments on commit d8c174c

Please sign in to comment.