From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPI1e-0001Dq-QT for qemu-devel@nongnu.org; Fri, 29 Jan 2016 18:00:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aPI1Z-0008Jw-S6 for qemu-devel@nongnu.org; Fri, 29 Jan 2016 18:00:22 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:46713) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPI1Z-0008Jf-MT for qemu-devel@nongnu.org; Fri, 29 Jan 2016 18:00:17 -0500 From: Shanker Donthineni Date: Fri, 29 Jan 2016 17:00:04 -0600 Message-Id: <1454108405-4822-2-git-send-email-shankerd@codeaurora.org> In-Reply-To: <1454108405-4822-1-git-send-email-shankerd@codeaurora.org> References: <1454108405-4822-1-git-send-email-shankerd@codeaurora.org> Subject: [Qemu-devel] [PATCH 1/2] hw/arm/sysbus-fdt: rename xgmac platform fdt node creation function List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Christopher Covington , Vikram Sethi , Eric Auger , Kaya Sinan , Alex Williamson , Shanker Donthineni From: Vikram Sethi The function that creates a device tree node for the Calxeda XGMAC platform device is fairly generic and can be reused for other platform devices that require just reg, interrupts and dma-coherent properties. Rename add_calxeda_midway_xgmac_fdt_node to add_generic_platform_fdt_node to allow reuse. Signed-off-by: Vikram Sethi Signed-off-by: Shanker Donthineni --- hw/arm/sysbus-fdt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/arm/sysbus-fdt.c b/hw/arm/sysbus-fdt.c index 9d28797..6ee7af2 100644 --- a/hw/arm/sysbus-fdt.c +++ b/hw/arm/sysbus-fdt.c @@ -64,7 +64,7 @@ typedef struct NodeCreationPair { * Generates a simple node with following properties: * compatible string, regs, interrupts, dma-coherent */ -static int add_calxeda_midway_xgmac_fdt_node(SysBusDevice *sbdev, void *opaque) +static int add_generic_platform_fdt_node(SysBusDevice *sbdev, void *opaque) { PlatformBusFDTData *data = opaque; PlatformBusDevice *pbus = data->pbus; @@ -125,7 +125,7 @@ fail_reg: /* list of supported dynamic sysbus devices */ static const NodeCreationPair add_fdt_node_functions[] = { - {TYPE_VFIO_CALXEDA_XGMAC, add_calxeda_midway_xgmac_fdt_node}, + {TYPE_VFIO_CALXEDA_XGMAC, add_generic_platform_fdt_node}, {"", NULL}, /* last element */ }; -- Qualcomm Technologies, Inc. on behalf of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.