dmaengine: dw-axi-dmac: Check the HAS_APB_REGS flag
authorJaehoon Chung <jh80.chung@samsung.com>
Tue, 23 Jan 2024 04:22:34 +0000 (13:22 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 19 Feb 2024 00:14:00 +0000 (09:14 +0900)
commit021f4d4acc673c6f619caf15ab5b47bd330546dd
treec8399592c244871e7bdb1161c28db68f5057dea3
parent5f9b81d464a8fb55fd83eef0754f8e38d4335883
dmaengine: dw-axi-dmac: Check the HAS_APB_REGS flag

Check the AXI_DMA_FLAGS_HAS_APB_REGS flags before checking
chip->apb_regs.

Even though its flags doesn't set, the below message is displaying like error.

[   24.879187] dw_axi_dmac_platform 16050000.dma-controller: apb_regs not initialized
[   26.928088] dw_axi_dmac_platform 16050000.dma-controller: apb_regs not initialized

Change-Id: Ia2751ee2308d0b65dc2ec6b69c50be6af578546e
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
drivers/dma/dw-axi-dmac/dw-axi-dmac.h