Commit fdfc374a authored by Rob Herring's avatar Rob Herring Committed by Takashi Iwai

ALSA: aoa: Replace asm/prom.h with explicit includes

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: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20231003163209.770750-1-robh@kernel.orgSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent e299a9fd
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
#define __AOA_GPIO_H #define __AOA_GPIO_H
#include <linux/workqueue.h> #include <linux/workqueue.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <asm/prom.h>
typedef void (*notify_func_t)(void *data); typedef void (*notify_func_t)(void *data);
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
#ifndef __AOA_H #ifndef __AOA_H
#define __AOA_H #define __AOA_H
#include <asm/prom.h>
#include <linux/module.h> #include <linux/module.h>
#include <sound/core.h> #include <sound/core.h>
#include <sound/asound.h> #include <sound/asound.h>
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
*/ */
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/of.h>
#include <linux/slab.h> #include <linux/slab.h>
MODULE_AUTHOR("Johannes Berg <johannes@sipsolutions.net>"); MODULE_AUTHOR("Johannes Berg <johannes@sipsolutions.net>");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
#define __SND_AOA_CODEC_ONYX_H #define __SND_AOA_CODEC_ONYX_H
#include <linux/i2c.h> #include <linux/i2c.h>
#include <asm/pmac_low_i2c.h> #include <asm/pmac_low_i2c.h>
#include <asm/prom.h>
/* PCM3052 register definitions */ /* PCM3052 register definitions */
......
...@@ -60,10 +60,10 @@ ...@@ -60,10 +60,10 @@
*/ */
#include <linux/i2c.h> #include <linux/i2c.h>
#include <asm/pmac_low_i2c.h> #include <asm/pmac_low_i2c.h>
#include <asm/prom.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/of.h>
#include <linux/slab.h> #include <linux/slab.h>
MODULE_AUTHOR("Johannes Berg <johannes@sipsolutions.net>"); MODULE_AUTHOR("Johannes Berg <johannes@sipsolutions.net>");
......
...@@ -7,9 +7,10 @@ ...@@ -7,9 +7,10 @@
* This fabric module looks for sound codecs based on the * This fabric module looks for sound codecs based on the
* layout-id or device-id property in the device tree. * layout-id or device-id property in the device tree.
*/ */
#include <asm/prom.h>
#include <linux/list.h> #include <linux/list.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/slab.h> #include <linux/slab.h>
#include "../aoa.h" #include "../aoa.h"
#include "../soundbus/soundbus.h" #include "../soundbus/soundbus.h"
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
*/ */
#include <linux/module.h> #include <linux/module.h>
#include <linux/of.h>
#include <linux/of_platform.h>
#include "soundbus.h" #include "soundbus.h"
MODULE_AUTHOR("Johannes Berg <johannes@sipsolutions.net>"); MODULE_AUTHOR("Johannes Berg <johannes@sipsolutions.net>");
......
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/io.h> #include <linux/io.h>
#include <asm/prom.h>
#include <asm/macio.h> #include <asm/macio.h>
#include <asm/pmac_feature.h> #include <asm/pmac_feature.h>
#include <asm/pmac_pfunc.h> #include <asm/pmac_pfunc.h>
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include <linux/pci.h> #include <linux/pci.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/dma-mapping.h> #include <linux/dma-mapping.h>
#include <linux/of.h>
#include <linux/of_address.h> #include <linux/of_address.h>
#include <linux/of_irq.h> #include <linux/of_irq.h>
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
#include <sound/pcm.h> #include <sound/pcm.h>
#include <asm/prom.h>
#include <asm/pmac_feature.h> #include <asm/pmac_feature.h>
#include <asm/dbdma.h> #include <asm/dbdma.h>
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#ifndef __SOUNDBUS_H #ifndef __SOUNDBUS_H
#define __SOUNDBUS_H #define __SOUNDBUS_H
#include <linux/of_device.h> #include <linux/platform_device.h>
#include <sound/pcm.h> #include <sound/pcm.h>
#include <linux/list.h> #include <linux/list.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment