Skip to content

Commit

Permalink
i2c: cadence: set THIS_MODULE to the owner of the adapter
Browse files Browse the repository at this point in the history
The owner of the adapter is missing, while this driver is tristate.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
  • Loading branch information
Masahiro Yamada authored and Wolfram Sang committed Aug 10, 2015
1 parent 6e24d20 commit a1f6431
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/i2c/busses/i2c-cadence.c
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,7 @@ static int cdns_i2c_probe(struct platform_device *pdev)

id->irq = platform_get_irq(pdev, 0);

id->adap.owner = THIS_MODULE;
id->adap.dev.of_node = pdev->dev.of_node;
id->adap.algo = &cdns_i2c_algo;
id->adap.timeout = CDNS_I2C_TIMEOUT;
Expand Down

0 comments on commit a1f6431

Please sign in to comment.