Skip to content

Commit 5ba508d

Browse files
nordic-krchlstnl
authored andcommitted
drivers: cache: nrf: Use hal instead of direct register access
Use hal for checking cache state. Signed-off-by: Krzysztof Chruściński <[email protected]>
1 parent 33e3a20 commit 5ba508d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/cache/cache_nrf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ static inline int _cache_checks(NRF_CACHE_Type *cache, enum k_nrf_cache_op op, v
160160
size_t size, bool is_range)
161161
{
162162
/* Check if the cache is enabled */
163-
if (!(cache->ENABLE & CACHE_ENABLE_ENABLE_Enabled)) {
163+
if (!nrf_cache_enable_check(cache)) {
164164
return -EAGAIN;
165165
}
166166

0 commit comments

Comments
 (0)