From: John Jacques <john.jacq...@lsi.com> These functions were temporary. They were added to allow development to continue on an external module that was not, at the time, released under the GPL.
Signed-off-by: John Jacques <john.jacq...@lsi.com> Signed-off-by: Paul Butler <paul.but...@windriver.com> --- arch/arm/mach-axxia/Makefile | 1 - arch/arm/mach-axxia/wrappers.c | 140 -------------------------------- arch/powerpc/sysdev/Makefile | 2 - arch/powerpc/sysdev/lsi_acp_wrappers.c | 132 ------------------------------ 4 files changed, 275 deletions(-) delete mode 100644 arch/arm/mach-axxia/wrappers.c delete mode 100644 arch/powerpc/sysdev/lsi_acp_wrappers.c diff --git a/arch/arm/mach-axxia/Makefile b/arch/arm/mach-axxia/Makefile index 85cee8f..47e386b 100644 --- a/arch/arm/mach-axxia/Makefile +++ b/arch/arm/mach-axxia/Makefile @@ -1,7 +1,6 @@ # # Makefile for the linux kernel. # -obj-y += wrappers.o obj-y += axxia.o obj-y += clock.o obj-y += io.o diff --git a/arch/arm/mach-axxia/wrappers.c b/arch/arm/mach-axxia/wrappers.c deleted file mode 100644 index 4d49825..0000000 --- a/arch/arm/mach-axxia/wrappers.c +++ /dev/null @@ -1,140 +0,0 @@ -/* - * arch/arm/mach-axxia/wrappers.c - * - * Copyright (C) 2013 LSI - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -#include <linux/module.h> -#include <asm/irq.h> -#include <linux/io.h> -#include <linux/irqdomain.h> -#include <linux/skbuff.h> -#include <linux/platform_device.h> - -/* - ============================================================================== - ============================================================================== - MDIO - ============================================================================== - ============================================================================== -*/ - -/* - ============================================================================== - ============================================================================== - Platform Device Registration - ============================================================================== - ============================================================================== -*/ - -/* - ------------------------------------------------------------------------------ - acp_platform_device_register -*/ - -int -acp_platform_device_register(struct platform_device *pdev) -{ - return platform_device_register(pdev); -} -EXPORT_SYMBOL(acp_platform_device_register); - -/* - ------------------------------------------------------------------------------ - acp_platform_device_unregister -*/ - -void -acp_platform_device_unregister(struct platform_device *pdev) -{ - platform_device_unregister(pdev); - - return; -} -EXPORT_SYMBOL(acp_platform_device_unregister); - -/* - ============================================================================ - ============================================================================ - SKB - ============================================================================ - ============================================================================ -*/ - -/* - ---------------------------------------------------------------------------- - acp_skb_tstamp_tx -*/ - -void -acp_skb_tstamp_tx(struct sk_buff *orig_skb, - struct skb_shared_hwtstamps *hwtstamps) { - skb_tstamp_tx(orig_skb, hwtstamps); -} -EXPORT_SYMBOL(acp_skb_tstamp_tx); - -/* - ============================================================================ - ============================================================================ - Interrupts - ============================================================================ - ============================================================================ -*/ - -/* - * ------------------------------------------------------------------------- - * acp_irq_create_mapping - */ -unsigned int acp_irq_create_mapping(struct irq_domain *host, - irq_hw_number_t hwirq) -{ - unsigned int mapped_irq; - - preempt_disable(); - mapped_irq = irq_create_mapping(host, hwirq); - preempt_enable(); - - return mapped_irq; -} -EXPORT_SYMBOL(acp_irq_create_mapping); - -/* - ============================================================================== - ============================================================================== - Linux Stuff - ============================================================================== - ============================================================================== -*/ - -/* - ------------------------------------------------------------------------------ - acp_wrappers_init -*/ - -int __init -acp_wrappers_init(void) -{ - printk(KERN_INFO "Initializing Axxia Wrappers.\n"); - - return 0; -} - -module_init(acp_wrappers_init); - -MODULE_AUTHOR("LSI Corporation"); -MODULE_DESCRIPTION("Timing Test"); -MODULE_LICENSE("GPL"); diff --git a/arch/powerpc/sysdev/Makefile b/arch/powerpc/sysdev/Makefile index 16090a6..b46b432 100644 --- a/arch/powerpc/sysdev/Makefile +++ b/arch/powerpc/sysdev/Makefile @@ -72,5 +72,3 @@ subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror obj-$(CONFIG_PPC_XICS) += xics/ obj-$(CONFIG_GE_FPGA) += ge/ - -obj-$(CONFIG_ACP) += lsi_acp_wrappers.o diff --git a/arch/powerpc/sysdev/lsi_acp_wrappers.c b/arch/powerpc/sysdev/lsi_acp_wrappers.c deleted file mode 100644 index 724c96c..0000000 --- a/arch/powerpc/sysdev/lsi_acp_wrappers.c +++ /dev/null @@ -1,132 +0,0 @@ -/* - * arch/powerpc/sysdev/lsi_acp_wrappers.c - * - * Copyright (C) 2013 LSI - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -#include <linux/module.h> -#include <asm/irq.h> -#include <linux/io.h> -#include <linux/irqdomain.h> -#include <linux/skbuff.h> -#include <linux/platform_device.h> - -/* - ============================================================================== - ============================================================================== - Platform Device Registration - ============================================================================== - ============================================================================== -*/ - -/* - ------------------------------------------------------------------------------ - acp_platform_device_register -*/ - -int -acp_platform_device_register(struct platform_device *pdev) -{ - return platform_device_register(pdev); -} -EXPORT_SYMBOL(acp_platform_device_register); - -/* - ------------------------------------------------------------------------------ - acp_platform_device_unregister -*/ - -void -acp_platform_device_unregister(struct platform_device *pdev) -{ - platform_device_unregister(pdev); - - return; -} -EXPORT_SYMBOL(acp_platform_device_unregister); - -/* - ============================================================================ - ============================================================================ - SKB - ============================================================================ - ============================================================================ -*/ - -/* - ---------------------------------------------------------------------------- - acp_skb_tstamp_tx -*/ - -void -acp_skb_tstamp_tx(struct sk_buff *orig_skb, - struct skb_shared_hwtstamps *hwtstamps) { - skb_tstamp_tx(orig_skb, hwtstamps); -} -EXPORT_SYMBOL(acp_skb_tstamp_tx); - -/* - ============================================================================ - ============================================================================ - Interrupts - ============================================================================ - ============================================================================ -*/ - -/* - * ------------------------------------------------------------------------- - * acp_irq_create_mapping - */ -unsigned int acp_irq_create_mapping(struct irq_domain *host, - irq_hw_number_t hwirq) -{ - unsigned int mapped_irq; - - preempt_disable(); - mapped_irq = irq_create_mapping(host, hwirq); - preempt_enable(); - - return mapped_irq; -} -EXPORT_SYMBOL(acp_irq_create_mapping); - -/* - ============================================================================== - ============================================================================== - Linux Stuff - ============================================================================== - ============================================================================== -*/ - -/* - ------------------------------------------------------------------------------ - acp_wrappers_init -*/ - -int __init -acp_wrappers_init(void) -{ - printk(KERN_INFO "Initializing Axxia Wrappers.\n"); - - return 0; -} - -module_init(acp_wrappers_init); - -MODULE_AUTHOR("LSI Corporation"); -MODULE_DESCRIPTION("Timing Test"); -MODULE_LICENSE("GPL"); -- 1.7.9.5 -- _______________________________________________ linux-yocto mailing list linux-yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/linux-yocto