mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
[etherswitch] [e6000sw] fix compile issue under clang/arm
Submitted by: Hiroki Mori <yamori813@yahoo.co.jp> Approved by: mizhka Differential Revision: https://reviews.freebsd.org/D10563
This commit is contained in:
parent
a10430e0a3
commit
034aec8568
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=317869
@ -169,6 +169,7 @@ e6060sw_probe(device_t dev)
|
||||
sc = device_get_softc(dev);
|
||||
bzero(sc, sizeof(*sc));
|
||||
|
||||
devid = 0;
|
||||
for (i = 0; i < 2; ++i) {
|
||||
data = MDIO_READREG(device_get_parent(dev),
|
||||
CORE_REGISTER + i * 0x10, SWITCH_ID);
|
||||
@ -184,8 +185,6 @@ e6060sw_probe(device_t dev)
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (i == 2)
|
||||
return (ENXIO);
|
||||
|
||||
if (devid == E6060)
|
||||
devname = "88E6060";
|
||||
@ -193,6 +192,9 @@ e6060sw_probe(device_t dev)
|
||||
devname = "88E6063";
|
||||
else if (devid == E6065)
|
||||
devname = "88E6065";
|
||||
else
|
||||
return (ENXIO);
|
||||
|
||||
sprintf(desc, "Marvell %s MDIO switch driver at 0x%02x",
|
||||
devname, sc->smi_offset);
|
||||
device_set_desc_copy(dev, desc);
|
||||
|
Loading…
Reference in New Issue
Block a user