aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/qcom_qup
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2022-09-12 02:35:02 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2022-09-13 03:10:25 +0000
commit633d178c63bef1110acde1932f97eb90da8881e8 (patch)
treeb0afc35ef3c1bdf6070c8668ecb04b80b4c6f2f5 /sys/dev/qcom_qup
parent82302a49fde3ff063e4f8187fc3ddf355084f786 (diff)
Diffstat (limited to 'sys/dev/qcom_qup')
-rw-r--r--sys/dev/qcom_qup/qcom_spi_hw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/qcom_qup/qcom_spi_hw.c b/sys/dev/qcom_qup/qcom_spi_hw.c
index 6b21fd239f5d..71cbcc671766 100644
--- a/sys/dev/qcom_qup/qcom_spi_hw.c
+++ b/sys/dev/qcom_qup/qcom_spi_hw.c
@@ -723,14 +723,14 @@ qcom_spi_hw_ack_write_pio_fifo(struct qcom_spi_softc *sc)
int
qcom_spi_hw_ack_opmode(struct qcom_spi_softc *sc)
{
- uint32_t reg;
QCOM_SPI_ASSERT_LOCKED(sc);
QCOM_SPI_BARRIER_READ(sc);
- reg = QCOM_SPI_READ_4(sc, QUP_OPERATIONAL);
+ QCOM_SPI_READ_4(sc, QUP_OPERATIONAL);
QCOM_SPI_WRITE_4(sc, QUP_OPERATIONAL, QUP_OP_OUT_SERVICE_FLAG);
QCOM_SPI_BARRIER_WRITE(sc);
+
return (0);
}