mfd: intel_quark_i2c_gpio: Remove unused struct device member
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 2 Mar 2021 13:56:18 +0000 (15:56 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 14 Apr 2021 15:06:23 +0000 (16:06 +0100)
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>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/intel_quark_i2c_gpio.c

index 3f13dc3..532c852 100644 (file)
@@ -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;
 };
@@ -238,7 +237,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);