提交 a9c6db3b 编写于 作者: R Rakesh Sankaranarayanan 提交者: David S. Miller

net: dsa: microchip: add irq in i2c probe

add device irq in i2c probe function.
Signed-off-by: NRakesh Sankaranarayanan <rakesh.sankaranarayanan@microchip.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 ef912fe4
...@@ -41,6 +41,8 @@ static int ksz9477_i2c_probe(struct i2c_client *i2c, ...@@ -41,6 +41,8 @@ static int ksz9477_i2c_probe(struct i2c_client *i2c,
if (i2c->dev.platform_data) if (i2c->dev.platform_data)
dev->pdata = i2c->dev.platform_data; dev->pdata = i2c->dev.platform_data;
dev->irq = i2c->irq;
ret = ksz_switch_register(dev); ret = ksz_switch_register(dev);
/* Main DSA driver may not be started yet. */ /* Main DSA driver may not be started yet. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册