aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/soc/ti
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/soc/ti')
-rw-r--r--drivers/soc/ti/knav_qmss.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/soc/ti/knav_qmss.h b/drivers/soc/ti/knav_qmss.h
index bc9dcc8cc3ce..51da2341280d 100644
--- a/drivers/soc/ti/knav_qmss.h
+++ b/drivers/soc/ti/knav_qmss.h
@@ -348,15 +348,15 @@ struct knav_range_info {
348 list_for_each_entry(region, &kdev->regions, list) 348 list_for_each_entry(region, &kdev->regions, list)
349 349
350#define first_region(kdev) \ 350#define first_region(kdev) \
351 list_first_entry(&kdev->regions, \ 351 list_first_entry_or_null(&kdev->regions, \
352 struct knav_region, list) 352 struct knav_region, list)
353 353
354#define for_each_queue_range(kdev, range) \ 354#define for_each_queue_range(kdev, range) \
355 list_for_each_entry(range, &kdev->queue_ranges, list) 355 list_for_each_entry(range, &kdev->queue_ranges, list)
356 356
357#define first_queue_range(kdev) \ 357#define first_queue_range(kdev) \
358 list_first_entry(&kdev->queue_ranges, \ 358 list_first_entry_or_null(&kdev->queue_ranges, \
359 struct knav_range_info, list) 359 struct knav_range_info, list)
360 360
361#define for_each_pool(kdev, pool) \ 361#define for_each_pool(kdev, pool) \
362 list_for_each_entry(pool, &kdev->pools, list) 362 list_for_each_entry(pool, &kdev->pools, list)