Date: Sat, 9 Apr 2022 01:31:55 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 54319253009b - main - ti_prm: Use existing dev in debug traces and remove unused sc. Message-ID: <202204090131.2391VtXw049566@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=54319253009bde13bcf1c7f5070775d7ec18d3a4 commit 54319253009bde13bcf1c7f5070775d7ec18d3a4 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-09 01:31:30 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-09 01:31:30 +0000 ti_prm: Use existing dev in debug traces and remove unused sc. --- sys/arm/ti/ti_prm.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/sys/arm/ti/ti_prm.c b/sys/arm/ti/ti_prm.c index 4a57fbb8b972..64edcf8c28f5 100644 --- a/sys/arm/ti/ti_prm.c +++ b/sys/arm/ti/ti_prm.c @@ -146,12 +146,10 @@ ti_prm_reset(device_t dev) int ti_prm_write_4(device_t dev, bus_addr_t addr, uint32_t val) { - struct ti_prm_softc *sc; device_t parent; parent = device_get_parent(dev); - sc = device_get_softc(dev); - DPRINTF(sc->dev, "offset=%lx write %x\n", addr, val); + DPRINTF(dev, "offset=%lx write %x\n", addr, val); ti_prcm_device_lock(parent); ti_prcm_write_4(parent, addr, val); ti_prcm_device_unlock(parent); @@ -161,32 +159,28 @@ ti_prm_write_4(device_t dev, bus_addr_t addr, uint32_t val) int ti_prm_read_4(device_t dev, bus_addr_t addr, uint32_t *val) { - struct ti_prm_softc *sc; device_t parent; parent = device_get_parent(dev); - sc = device_get_softc(dev); ti_prcm_device_lock(parent); ti_prcm_read_4(parent, addr, val); ti_prcm_device_unlock(parent); - DPRINTF(sc->dev, "offset=%lx Read %x\n", addr, *val); + DPRINTF(dev, "offset=%lx Read %x\n", addr, *val); return (0); } int ti_prm_modify_4(device_t dev, bus_addr_t addr, uint32_t clr, uint32_t set) { - struct ti_prm_softc *sc; device_t parent; parent = device_get_parent(dev); - sc = device_get_softc(dev); ti_prcm_device_lock(parent); ti_prcm_modify_4(parent, addr, clr, set); ti_prcm_device_unlock(parent); - DPRINTF(sc->dev, "offset=%lx (clr %x set %x)\n", addr, clr, set); + DPRINTF(dev, "offset=%lx (clr %x set %x)\n", addr, clr, set); return (0); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204090131.2391VtXw049566>