Commit a9c6db3b authored by Rakesh Sankaranarayanan's avatar Rakesh Sankaranarayanan Committed by David S. Miller

net: dsa: microchip: add irq in i2c probe

add device irq in i2c probe function.
Signed-off-by: default avatarRakesh Sankaranarayanan <rakesh.sankaranarayanan@microchip.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment