[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20171030142446.rsvytlcfcuhnkhdj@ninjato>
Date: Mon, 30 Oct 2017 15:24:46 +0100
From: Wolfram Sang <wsa@...-dreams.de>
To: Joel Stanley <joel@....id.au>
Cc: Brendan Higgins <brendanhiggins@...gle.com>,
Philipp Zabel <philipp.zabel@...il.com>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
Andrew Jeffery <andrew@...id.au>, linux-i2c@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3] i2c: aspeed: Deassert reset in probe
> #include <linux/clk.h>
> #include <linux/completion.h>
> +#include <linux/delay.h>
Sorry, I missed it from previous reviews, but why is delay.h needed?
> + bus->rst = devm_reset_control_get_optional_shared(&pdev->dev, NULL);
> + if (IS_ERR(bus->rst)) {
> + dev_err(&pdev->dev, "invalid reset controller in device tree");
> + bus->rst = NULL;
> + } else
> + reset_control_deassert(bus->rst);
checkpatch --strict says:
CHECK: braces {} should be used on all arms of this statement
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists