Skip to content

Commit d237656

Browse files
Joakim Zhangdavem330
authored andcommitted
net: fec_ptp: fix issue caused by refactor the fec_devtype
Commit da72218 ("net: fec: set GPR bit on suspend by DT configuration.") refactor the fec_devtype, need adjust ptp driver accordingly. Fixes: da72218 ("net: fec: set GPR bit on suspend by DT configuration.") Signed-off-by: Joakim Zhang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent cb3cefe commit d237656

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/net/ethernet/freescale/fec_ptp.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,15 +215,13 @@ static u64 fec_ptp_read(const struct cyclecounter *cc)
215215
{
216216
struct fec_enet_private *fep =
217217
container_of(cc, struct fec_enet_private, cc);
218-
const struct platform_device_id *id_entry =
219-
platform_get_device_id(fep->pdev);
220218
u32 tempval;
221219

222220
tempval = readl(fep->hwp + FEC_ATIME_CTRL);
223221
tempval |= FEC_T_CTRL_CAPTURE;
224222
writel(tempval, fep->hwp + FEC_ATIME_CTRL);
225223

226-
if (id_entry->driver_data & FEC_QUIRK_BUG_CAPTURE)
224+
if (fep->quirks & FEC_QUIRK_BUG_CAPTURE)
227225
udelay(1);
228226

229227
return readl(fep->hwp + FEC_ATIME);

0 commit comments

Comments
 (0)