mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-08 14:13:53 +00:00
net: dsa: microchip: add irq in i2c probe
add device irq in i2c probe function. Signed-off-by: Rakesh Sankaranarayanan <rakesh.sankaranarayanan@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ef912fe443
commit
a9c6db3bc9
@ -41,6 +41,8 @@ static int ksz9477_i2c_probe(struct i2c_client *i2c,
|
||||
if (i2c->dev.platform_data)
|
||||
dev->pdata = i2c->dev.platform_data;
|
||||
|
||||
dev->irq = i2c->irq;
|
||||
|
||||
ret = ksz_switch_register(dev);
|
||||
|
||||
/* Main DSA driver may not be started yet. */
|
||||
|
Loading…
Reference in New Issue
Block a user