ALSA: aoa: Replace asm/prom.h with explicit includes
Subsystems (2)
PATCH 1/1 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 Rob Herring <[email protected]>
--- sound/aoa/aoa-gpio.h | 1 - sound/aoa/aoa.h | 1 - sound/aoa/codecs/onyx.c | 1 + sound/aoa/codecs/onyx.h | 1 - sound/aoa/codecs/tas.c | 2 +- sound/aoa/fabrics/layout.c | 3 ++- sound/aoa/soundbus/core.c | 2 ++ sound/aoa/soundbus/i2sbus/control.c | 1 - sound/aoa/soundbus/i2sbus/core.c | 1 + sound/aoa/soundbus/i2sbus/i2sbus.h | 1 - sound/aoa/soundbus/soundbus.h | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-)
sound/aoa/aoa-gpio.h +0 -1
@@ -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);
sound/aoa/aoa.h +0 -1
@@ -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>
sound/aoa/codecs/onyx.c +1 -0
@@ -30,6 +30,7 @@*/ #include <linux/delay.h> #include <linux/module.h> +#include <linux/of.h> #include <linux/slab.h> MODULE_AUTHOR ("Johannes Berg <[email protected]>" );MODULE_LICENSE ("GPL" );
sound/aoa/codecs/onyx.h +0 -1
@@ -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 */
sound/aoa/codecs/tas.c +1 -1
@@ -60,10 +60,10 @@*/ #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 <[email protected]>" );
sound/aoa/fabrics/layout.c +2 -1
@@ -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"
sound/aoa/soundbus/core.c +2 -0
@@ -6,6 +6,8 @@*/ #include <linux/module.h> +#include <linux/of.h> +#include <linux/of_platform.h> #include "soundbus.h" MODULE_AUTHOR ("Johannes Berg <[email protected]>" );
sound/aoa/soundbus/i2sbus/control.c +0 -1
@@ -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>
sound/aoa/soundbus/i2sbus/core.c +1 -0
@@ -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>
sound/aoa/soundbus/i2sbus/i2sbus.h +0 -1
@@ -13,7 +13,6 @@#include <sound/pcm.h> -#include <asm/prom.h> #include <asm/pmac_feature.h> #include <asm/dbdma.h>
sound/aoa/soundbus/soundbus.h +1 -1
@@ -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>
Signature · 1 line
2.40.1
Quoted 6 lines · Rob Herring
asm/prom.hshould not be included directly as it no longer contains anything drivers need. Drivers should includeof.hand/or other headers which were getting implicitly included.Signed-off-by Rob Herring <[email protected]>
Applied now to for-next branch. Thanks.
Takashi