[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOMZO5C2L1R1YrnoHL19ztCA5kzOLYQHC2OY2LFi2Lh8sbv24Q@mail.gmail.com>
Date: Tue, 22 Dec 2020 10:25:32 -0300
From: Fabio Estevam <festevam@...il.com>
To: "Alice Guo (OSS)" <alice.guo@....nxp.com>
Cc: Rob Herring <robh+dt@...nel.org>, Shawn Guo <shawnguo@...nel.org>,
Sascha Hauer <s.hauer@...gutronix.de>,
Sascha Hauer <kernel@...gutronix.de>,
Krzysztof Kozlowski <krzk@...nel.org>,
"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
<devicetree@...r.kernel.org>,
"moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE"
<linux-arm-kernel@...ts.infradead.org>,
linux-kernel <linux-kernel@...r.kernel.org>,
NXP Linux Team <linux-imx@....com>
Subject: Re: [PATCH v9 4/4] soc: imx8m: change to use platform driver
Hi Alice,
On Tue, Dec 22, 2020 at 5:11 AM Alice Guo (OSS) <alice.guo@....nxp.com> wrote:
> - soc_uid = readl_relaxed(ocotp_base + OCOTP_UID_HIGH);
> - soc_uid <<= 32;
> - soc_uid |= readl_relaxed(ocotp_base + OCOTP_UID_LOW);
> + if (dev) {
> + int ret = 0;
No need to initialize ret to 0.
> - imx8mm_soc_uid();
> + if (dev) {
> + int ret = 0;
Ditto.
> +/* Retain device_initcall is for backward compatibility with DTS. */
> +static int __init imx8_soc_init(void)
> +{
> + int ret = 0;
Ditto.
> +
> + if (of_find_matching_node_and_match(NULL, imx8_soc_match, NULL))
> + return 0;
> +
> + ret = imx8_soc_info(NULL);
> + return ret;
Or you could even get rid of 'ret' and return imx8_soc_info() directly.
Powered by blists - more mailing lists