]> rtime.felk.cvut.cz Git - vajnamar/linux-xlnx.git/commitdiff
remoteproc: zynq: remove unused power domain id
authorWendy Liang <wendy.liang@xilinx.com>
Wed, 26 Jul 2017 22:08:08 +0000 (15:08 -0700)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 27 Jul 2017 08:59:25 +0000 (10:59 +0200)
Remove the unused power domain id setting from the driver
probe() function.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/remoteproc/zynq_remoteproc.c

index eff1168ed7529b6a09beb1f07608918768ca8e1b..d4eac41f9bfaa165e547ff135ac6913b14f1fd71 100644 (file)
@@ -59,7 +59,6 @@ struct ipi_info {
 struct mem_pool_st {
        struct list_head node;
        struct gen_pool *pool;
-       u32 pd_id;
 };
 
 /* Private data */
@@ -291,7 +290,6 @@ static int zynq_remoteproc_probe(struct platform_device *pdev)
        struct irq_list *tmp;
        int count = 0;
        struct zynq_rproc_pdata *local;
-       struct device_node *tmp_node;
        struct gen_pool *mem_pool = NULL;
        struct mem_pool_st *mem_node = NULL;
        char mem_name[16];
@@ -397,20 +395,6 @@ static int zynq_remoteproc_probe(struct platform_device *pdev)
                        if (!mem_node)
                                goto ipi_fault;
                        mem_node->pool = mem_pool;
-                       /* Get the memory node power domain id */
-                       tmp_node = of_parse_phandle(pdev->dev.of_node,
-                                               mem_name, 0);
-                       if (tmp_node) {
-                               struct device_node *pd_node;
-
-                               pd_node = of_parse_phandle(tmp_node,
-                                               "pd-handle", 0);
-                               if (pd_node)
-                                       of_property_read_u32(pd_node,
-                                               "pd-id", &mem_node->pd_id);
-                       }
-                       dev_dbg(&pdev->dev, "mem[%d] pd_id = %d.\n",
-                               i, mem_node->pd_id);
                        list_add_tail(&mem_node->node, &local->mem_pools);
                } else {
                        break;