Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de546c8a authored by Tony Lindgren's avatar Tony Lindgren Committed by Wolfram Sang
Browse files

i2c: cbus-gpio: Fix device tree binding



Looks like we're missing two lines needed to make it
work properly with device tree.

Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
Tested-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 2dc9688a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -246,6 +246,7 @@ static int cbus_i2c_probe(struct platform_device *pdev)
	adapter->owner		= THIS_MODULE;
	adapter->class		= I2C_CLASS_HWMON;
	adapter->dev.parent	= &pdev->dev;
	adapter->dev.of_node	= pdev->dev.of_node;
	adapter->nr		= pdev->id;
	adapter->timeout	= HZ;
	adapter->algo		= &cbus_i2c_algo;
@@ -289,6 +290,7 @@ static struct platform_driver cbus_i2c_driver = {
	.driver	= {
		.owner	= THIS_MODULE,
		.name	= "i2c-cbus-gpio",
		.of_match_table = of_match_ptr(i2c_cbus_dt_ids),
	},
};
module_platform_driver(cbus_i2c_driver);