Skip to content

Commit 2b77ea7

Browse files
andy-shevLee Jones
authored andcommitted
mfd: intel_quark_i2c_gpio: Remove unused struct device member
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>
1 parent 1514ce4 commit 2b77ea7

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎drivers/mfd/intel_quark_i2c_gpio.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
#define INTEL_QUARK_I2C_CLK_HZ 33000000
4646

4747
struct intel_quark_mfd {
48-
struct device *dev;
4948
struct clk *i2c_clk;
5049
struct clk_lookup *i2c_clk_lookup;
5150
};
@@ -238,7 +237,6 @@ static int intel_quark_mfd_probe(struct pci_dev *pdev,
238237
if (!quark_mfd)
239238
return -ENOMEM;
240239

241-
quark_mfd->dev = &pdev->dev;
242240
dev_set_drvdata(&pdev->dev, quark_mfd);
243241

244242
ret = intel_quark_register_i2c_clk(&pdev->dev);

0 commit comments

Comments
 (0)