From 8fce60b8d0c62363c29d64efb0cceb98519f0350 Mon Sep 17 00:00:00 2001 From: Simon Arlott Date: Sun, 13 Dec 2015 22:46:59 +0000 Subject: [PATCH] MIPS: bcm963xx: Move Broadcom BCM963xx image tag data structure Move Broadcom BCM963xx image tag data structure to include/linux/ so that drivers outside of mach-bcm63xx can use it. Signed-off-by: Simon Arlott Cc: David Woodhouse Cc: Brian Norris Cc: Kevin Cernekee Cc: Florian Fainelli Cc: Jonas Gorski Cc: Linux Kernel Mailing List Cc: MIPS Mailing List Cc: MTD Maling List Patchwork: https://patchwork.linux-mips.org/patch/11832/ Signed-off-by: Ralf Baechle --- MAINTAINERS | 1 + drivers/mtd/bcm63xxpart.c | 2 +- .../asm/mach-bcm63xx => include/linux}/bcm963xx_tag.h | 8 +++++--- 3 files changed, 7 insertions(+), 4 deletions(-) rename {arch/mips/include/asm/mach-bcm63xx => include/linux}/bcm963xx_tag.h (96%) diff --git a/MAINTAINERS b/MAINTAINERS index 6cb7b57a0e2f..069406de5b14 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2377,6 +2377,7 @@ F: arch/mips/boot/dts/brcm/bcm*.dts* F: drivers/irqchip/irq-bcm7* F: drivers/irqchip/irq-brcmstb* F: include/linux/bcm963xx_nvram.h +F: include/linux/bcm963xx_tag.h BROADCOM TG3 GIGABIT ETHERNET DRIVER M: Prashant Sreedharan diff --git a/drivers/mtd/bcm63xxpart.c b/drivers/mtd/bcm63xxpart.c index b2443f7031c9..8b86ed69522e 100644 --- a/drivers/mtd/bcm63xxpart.c +++ b/drivers/mtd/bcm63xxpart.c @@ -24,6 +24,7 @@ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt +#include #include #include #include @@ -34,7 +35,6 @@ #include #include -#include #include #define BCM63XX_EXTENDED_SIZE 0xBFC00000 /* Extended flash address */ diff --git a/arch/mips/include/asm/mach-bcm63xx/bcm963xx_tag.h b/include/linux/bcm963xx_tag.h similarity index 96% rename from arch/mips/include/asm/mach-bcm63xx/bcm963xx_tag.h rename to include/linux/bcm963xx_tag.h index 1e6b587f62c9..f389dace6d95 100644 --- a/arch/mips/include/asm/mach-bcm63xx/bcm963xx_tag.h +++ b/include/linux/bcm963xx_tag.h @@ -1,5 +1,7 @@ -#ifndef __BCM963XX_TAG_H -#define __BCM963XX_TAG_H +#ifndef __LINUX_BCM963XX_TAG_H__ +#define __LINUX_BCM963XX_TAG_H__ + +#include #define TAGVER_LEN 4 /* Length of Tag Version */ #define TAGLAYOUT_LEN 4 /* Length of FlashLayoutVer */ @@ -93,4 +95,4 @@ struct bcm_tag { char reserved2[16]; }; -#endif /* __BCM63XX_TAG_H */ +#endif /* __LINUX_BCM63XX_TAG_H__ */ -- 2.34.1