net/e1000: fix driver probing in the presence of two e1000 devices
The .id member of the struct device for the invm device is not
initialized and so implicitly zero. This yields:

	register_device: already registered invm0

for the second i210 during probe.

So use the parent's id to initialize the id for invm, too, as is already
done for the corresponding e1000-nor device.

Fixes: a74b97f009c6 ("e1000: Expose i210's iNVM as a cdev")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 8968940 commit db02aac6be9267ccc1a93ffec6c1f49352cf719a
@Uwe Kleine-König Uwe Kleine-König authored on 11 Jan 2018
Sascha Hauer committed on 17 Jan 2018
Showing 1 changed file
View
drivers/net/e1000/eeprom.c