[v1,3/5] mfd: intel_quark_i2c_gpio: Remove unused struct device member
diff mbox series

Message ID 20210302135620.89958-3-andriy.shevchenko@linux.intel.com
State New, archived
Headers show
Series
  • [v1,1/5] mfd: intel_quark_i2c_gpio: revert "Constify static struct resources"
Related show

Commit Message

Andy Shevchenko March 2, 2021, 1:56 p.m. UTC
The device pointer in the custom structure is not used anywhere,
remove it for good.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/mfd/intel_quark_i2c_gpio.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Lee Jones March 23, 2021, 9:22 a.m. UTC | #1
On Tue, 02 Mar 2021, Andy Shevchenko wrote:

> The device pointer in the custom structure is not used anywhere,
> remove it for good.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>  drivers/mfd/intel_quark_i2c_gpio.c | 2 --
>  1 file changed, 2 deletions(-)

Applied, thanks.

Patch
diff mbox series

diff --git a/drivers/mfd/intel_quark_i2c_gpio.c b/drivers/mfd/intel_quark_i2c_gpio.c
index db756b74195a..053780539175 100644
--- a/drivers/mfd/intel_quark_i2c_gpio.c
+++ b/drivers/mfd/intel_quark_i2c_gpio.c
@@ -45,7 +45,6 @@ 
 #define INTEL_QUARK_I2C_CLK_HZ	33000000
 
 struct intel_quark_mfd {
-	struct device		*dev;
 	struct clk		*i2c_clk;
 	struct clk_lookup	*i2c_clk_lookup;
 };
@@ -239,7 +238,6 @@  static int intel_quark_mfd_probe(struct pci_dev *pdev,
 	if (!quark_mfd)
 		return -ENOMEM;
 
-	quark_mfd->dev = &pdev->dev;
 	dev_set_drvdata(&pdev->dev, quark_mfd);
 
 	ret = intel_quark_register_i2c_clk(&pdev->dev);