ALSA: aoa: Replace asm/prom.h with explicit includes
authorRob Herring <robh@kernel.org>
Tue, 3 Oct 2023 16:32:02 +0000 (11:32 -0500)
committerTakashi Iwai <tiwai@suse.de>
Fri, 6 Oct 2023 09:11:40 +0000 (11:11 +0200)
asm/prom.h should not be included directly as it no longer contains
anything drivers need. Drivers should include of.h and/or other headers
which were getting implicitly included.

Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20231003163209.770750-1-robh@kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/aoa/aoa-gpio.h
sound/aoa/aoa.h
sound/aoa/codecs/onyx.c
sound/aoa/codecs/onyx.h
sound/aoa/codecs/tas.c
sound/aoa/fabrics/layout.c
sound/aoa/soundbus/core.c
sound/aoa/soundbus/i2sbus/control.c
sound/aoa/soundbus/i2sbus/core.c
sound/aoa/soundbus/i2sbus/i2sbus.h
sound/aoa/soundbus/soundbus.h

index 54f9a78fa08e4faef8f8a8bad03ff09088edc369..77ae75d7594c78c0430da7fcb640449f06d87d0c 100644 (file)
@@ -9,7 +9,6 @@
 #define __AOA_GPIO_H
 #include <linux/workqueue.h>
 #include <linux/mutex.h>
-#include <asm/prom.h>
 
 typedef void (*notify_func_t)(void *data);
 
index 3d2d03ff6337dacf9b3d274d0c8d0eb4ebd8286b..badff9f7cd54d7cc337fc2e15e58a225203f57b0 100644 (file)
@@ -7,7 +7,6 @@
 
 #ifndef __AOA_H
 #define __AOA_H
-#include <asm/prom.h>
 #include <linux/module.h>
 #include <sound/core.h>
 #include <sound/asound.h>
index a8a59d71dcec9b84a5c0c134d3946ef283700c9a..e90e03bb0dc09fc19119963b08d2007e2982fcac 100644 (file)
@@ -30,6 +30,7 @@
  */
 #include <linux/delay.h>
 #include <linux/module.h>
+#include <linux/of.h>
 #include <linux/slab.h>
 MODULE_AUTHOR("Johannes Berg <johannes@sipsolutions.net>");
 MODULE_LICENSE("GPL");
index 6c31b7373b78c9a3458631eec9603eb21668677f..bbdca841fe9090f060f57f3dd723535f1294879e 100644 (file)
@@ -8,7 +8,6 @@
 #define __SND_AOA_CODEC_ONYX_H
 #include <linux/i2c.h>
 #include <asm/pmac_low_i2c.h>
-#include <asm/prom.h>
 
 /* PCM3052 register definitions */
 
index ab147239006155831c33beb41365f7737232abfa..be9822ebf9f8ace734251b96d07af6b4a0b83f41 100644 (file)
  */
 #include <linux/i2c.h>
 #include <asm/pmac_low_i2c.h>
-#include <asm/prom.h>
 #include <linux/delay.h>
 #include <linux/module.h>
 #include <linux/mutex.h>
+#include <linux/of.h>
 #include <linux/slab.h>
 
 MODULE_AUTHOR("Johannes Berg <johannes@sipsolutions.net>");
index 850dc8c53e9b55f35c1e5c0cc68fa4a63524ed5e..0cd19a05db1987e222548dbb95b3bf76b71a586e 100644 (file)
@@ -7,9 +7,10 @@
  * This fabric module looks for sound codecs based on the
  * layout-id or device-id property in the device tree.
  */
-#include <asm/prom.h>
 #include <linux/list.h>
 #include <linux/module.h>
+#include <linux/of.h>
+#include <linux/platform_device.h>
 #include <linux/slab.h>
 #include "../aoa.h"
 #include "../soundbus/soundbus.h"
index 39fb8fe4e6ab858a6533d521e796a5f315e006d7..8f24a3eea16bd34f8c890248538749758fab0cb7 100644 (file)
@@ -6,6 +6,8 @@
  */
 
 #include <linux/module.h>
+#include <linux/of.h>
+#include <linux/of_platform.h>
 #include "soundbus.h"
 
 MODULE_AUTHOR("Johannes Berg <johannes@sipsolutions.net>");
index 7d3abb8b2416e17b6c0e7a7e0b31753d6896aa48..a003ef06de6359723976035a576a957423990d19 100644 (file)
@@ -10,7 +10,6 @@
 #include <linux/slab.h>
 #include <linux/io.h>
 
-#include <asm/prom.h>
 #include <asm/macio.h>
 #include <asm/pmac_feature.h>
 #include <asm/pmac_pfunc.h>
index 51ed2f34b276de1317862165ca1485e05aab64ef..3f49a9e28bfc5509742822fff70a2d2b3eb74ee7 100644 (file)
@@ -10,6 +10,7 @@
 #include <linux/pci.h>
 #include <linux/interrupt.h>
 #include <linux/dma-mapping.h>
+#include <linux/of.h>
 #include <linux/of_address.h>
 #include <linux/of_irq.h>
 
index e86fdbb3b4c506c8f855d5bc446bb43ccd177630..7a3cae0d6c2665adf853074c94b4565c1fbf31e8 100644 (file)
@@ -13,7 +13,6 @@
 
 #include <sound/pcm.h>
 
-#include <asm/prom.h>
 #include <asm/pmac_feature.h>
 #include <asm/dbdma.h>
 
index db40f9d042b4ad1a22f14edd535e0682f8907ad1..877cbad93f120048a8f272c32af53445545bfb3e 100644 (file)
@@ -7,7 +7,7 @@
 #ifndef __SOUNDBUS_H
 #define __SOUNDBUS_H
 
-#include <linux/of_device.h>
+#include <linux/platform_device.h>
 #include <sound/pcm.h>
 #include <linux/list.h>