[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2076856.iIXavsNzjc@wuerfel>
Date: Thu, 09 Oct 2014 16:37:25 +0200
From: Arnd Bergmann <arnd@...db.de>
To: linux-arm-kernel@...ts.infradead.org
Cc: "Joe. C" <yingjoe.chen@...iatek.com>, arm@...nel.org,
Rob Herring <robh+dt@...nel.org>,
Thomas Gleixner <tglx@...utronix.de>,
Jiang Liu <jiang.liu@...ux.intel.com>,
Marc Zyngier <marc.zyngier@....com>,
Mark Rutland <mark.rutland@....com>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
Sricharan R <r.sricharan@...com>,
Florian Fainelli <f.fainelli@...il.com>,
Russell King <linux@....linux.org.uk>, yingjoe.chen@...il.com,
yh.chen@...iatek.com, nathan.chung@...iatek.com,
Grant Likely <grant.likely@...aro.org>,
devicetree@...r.kernel.org, Jason Cooper <jason@...edaemon.net>,
Pawel Moll <pawel.moll@....com>,
Matt Porter <mporter@...aro.org>,
Marc Carino <marc.ceeeee@...il.com>,
Matthias Brugger <matthias.bgg@...il.com>,
eddie.huang@...iatek.com, srv_heupstream@...iatek.com,
hc.yen@...iatek.com, linux-kernel@...r.kernel.org,
Santosh Shilimkar <santosh.shilimkar@...com>,
Sascha Hauer <kernel@...gutronix.de>,
Olof Johansson <olof@...om.net>
Subject: Re: [PATCH v3 4/7] ARM: mediatek: Add sysirq interrupt polarity support
On Thursday 09 October 2014 22:29:37 Joe. C wrote:
> +static int __init mtk_sysirq_of_init(struct device_node *node,
> + struct device_node *parent)
> +{
> + struct device_node *parent_node;
> + struct irq_domain *domain, *domain_parent = NULL;
> + struct mt_sysirq_chip_data *chip_data;
> + int ret = 0;
> +
> + parent_node = of_irq_find_parent(node);
> + if (parent_node) {
> + domain_parent = irq_find_host(parent_node);
> + of_node_put(parent_node);
> + }
Just a small comment: I think the 'parent' argument to the function
already contains the device node you are looking up here, so
no need for the second variable or _find_parent call.
This means you can also drop the = NULL assignment for the
domain.
Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists