]> www.infradead.org Git - users/hch/block.git/commitdiff
bus: mhi: Remove include of rwlock_types.h
authorClark Williams <williams@redhat.com>
Tue, 15 Sep 2020 07:48:16 +0000 (09:48 +0200)
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Tue, 15 Sep 2020 08:22:11 +0000 (13:52 +0530)
rwlock.h should not be included directly. Instead linux/splinlock.h
should be included. Including it directly will break the RT build.

Also there is no point in including _types.h headers directly. There is
no benefit in including the type without the accessor.

Fixes: 0cbf260820fa7 ("bus: mhi: core: Add support for registering MHI controllers")
Signed-off-by: Clark Williams <williams@redhat.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
include/linux/mhi.h

index b2c0214bfbd6e5a5d86635f61325baf5f927cc54..008b8f6fa9ff3c7f77e70beab3762d97a50e0f63 100644 (file)
@@ -9,10 +9,9 @@
 #include <linux/device.h>
 #include <linux/dma-direction.h>
 #include <linux/mutex.h>
-#include <linux/rwlock_types.h>
 #include <linux/skbuff.h>
 #include <linux/slab.h>
-#include <linux/spinlock_types.h>
+#include <linux/spinlock.h>
 #include <linux/wait.h>
 #include <linux/workqueue.h>