diff options
author | Adrian Chadd <adrian@FreeBSD.org> | 2022-09-12 02:35:02 +0000 |
---|---|---|
committer | Adrian Chadd <adrian@FreeBSD.org> | 2022-09-13 03:10:25 +0000 |
commit | 633d178c63bef1110acde1932f97eb90da8881e8 (patch) | |
tree | b0afc35ef3c1bdf6070c8668ecb04b80b4c6f2f5 | |
parent | 82302a49fde3ff063e4f8187fc3ddf355084f786 (diff) | |
download | src-633d178c63bef1110acde1932f97eb90da8881e8.tar.gz src-633d178c63bef1110acde1932f97eb90da8881e8.zip |
qcom_qup: compilation fixes
Fix compilation warning/errors - in this instance we do need the register
IO.
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D36535
-rw-r--r-- | sys/dev/qcom_qup/qcom_spi_hw.c | 4 |
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); } |