[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/2] hw/arm/sysbus-fdt: rename xgmac platform fdt no
From: |
Shanker Donthineni |
Subject: |
[Qemu-devel] [PATCH 1/2] hw/arm/sysbus-fdt: rename xgmac platform fdt node creation function |
Date: |
Fri, 29 Jan 2016 17:00:04 -0600 |
From: Vikram Sethi <address@hidden>
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 <address@hidden>
Signed-off-by: Shanker Donthineni <address@hidden>
---
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.