Skip to contentSkip to conversation

i2c: tegra: remove unused member variable

PATCH Applied Laxman Dewangan 2 participants 2 messages Jul 10, 2012 – Jul 12, 2012

Subsystems (3)
lore
Share & tools
lore

Laxman Dewangan

author maintainer
#0 lore raw

PATCH v2 1/5 i2c: tegra: remove unused member variable

Remove unused member variable "iomem" of the
i2c device structure.

This variable becomes unused when converted all allocation to devm_* in following change:
i2c: tegra: make all resource allocation through devm_*

---
This patch is resend of earlier patch
i2c: tegra: remove unused member variable.
and sending it as part fo series.

Changes from V1:
Adding more details in description why this variable becomes unused. No change in code.

Remaining patches of this series will be still same, version V1. If require, I will resend the series with new version.

 drivers/i2c/busses/i2c-tegra.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/i2c/busses/i2c-tegra.c +0 -2
index f15cd49..00cdc10 100644
@@ -119,7 +119,6 @@ enum msg_end_type {
  * @adapter: core i2c layer adapter information
  * @clk: clock reference for i2c controller
  * @i2c_clk: clock reference for i2c bus
- * @iomem: memory resource for registers
  * @base: ioremapped registers cookie
  * @cont_id: i2c controller id, used for for packet header
  * @irq: irq number of transfer complete interrupt
@@ -137,7 +136,6 @@ struct tegra_i2c_dev {
 	struct i2c_adapter adapter;
 	struct clk *clk;
 	struct clk *i2c_clk;
-	struct resource *iomem;
 	void __iomem *base;
 	int cont_id;
 	int irq;
Signature · 1 line
1.7.1.1
Applied
#1 lore raw
Quoted 8 lines · Laxman Dewangan

Remove unused member variable "iomem" of the
i2c device structure.

This variable becomes unused when converted all allocation to devm_* in following change:
i2c: tegra: make all resource allocation through devm_*

Applied to next, thanks.

Signature · 2 lines
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |