From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Shevchenko Subject: Re: [PATCH v4 2/2] i2c: add support for Socionext SynQuacer I2C controller Date: Thu, 1 Mar 2018 20:32:21 +0200 Message-ID: References: <20180301163815.30595-1-ard.biesheuvel@linaro.org> <20180301163815.30595-3-ard.biesheuvel@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: In-Reply-To: <20180301163815.30595-3-ard.biesheuvel@linaro.org> Sender: linux-kernel-owner@vger.kernel.org To: Ard Biesheuvel Cc: Wolfram Sang , Rob Herring , Mark Rutland , linux-i2c , devicetree , Linux Kernel Mailing List , linux-arm Mailing List , Jassi Brar List-Id: devicetree@vger.kernel.org On Thu, Mar 1, 2018 at 6:38 PM, Ard Biesheuvel wrote: > This is a cleaned up version of the I2C controller driver for > the Fujitsu F_I2C IP, which was never supported upstream, and > has now been incorporated into the Socionext SynQuacer SoC. > +static int synquacer_i2c_remove(struct platform_device *pdev) > +{ > + struct synquacer_i2c *i2c = platform_get_drvdata(pdev); > + > + platform_set_drvdata(pdev, NULL); Just noticed, this is redundant for many years since driver core does it for every device on removal. It can be fixed by followup though. > + i2c_del_adapter(&i2c->adapter); > + if (!IS_ERR(i2c->pclk)) > + clk_disable_unprepare(i2c->pclk); > + > + return 0; > +}; -- With Best Regards, Andy Shevchenko