diff options
| author | Jingoo Han <jg1.han@samsung.com> | 2014-01-13 19:19:30 -0500 |
|---|---|---|
| committer | Wolfram Sang <wsa@the-dreams.de> | 2014-01-16 05:15:50 -0500 |
| commit | d1ccc125f348ff31dd7954ae718e73ba1c884da9 (patch) | |
| tree | 9ea8ac3d16474427851bccc38ba8d7773c426f1f /include/linux | |
| parent | d9a3afc2cfe8dd825cb465b22cf7df8ad204c171 (diff) | |
i2c: pnx: Use devm_*() functions
Use devm_*() functions to make cleanup paths simpler,
and remove redundant return value check of platform_get_resource()
because the value is checked by devm_ioremap_resource().
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/i2c-pnx.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/i2c-pnx.h b/include/linux/i2c-pnx.h index 49ed17fdf055..5388326fbbff 100644 --- a/include/linux/i2c-pnx.h +++ b/include/linux/i2c-pnx.h | |||
| @@ -31,7 +31,6 @@ struct i2c_pnx_algo_data { | |||
| 31 | int last; | 31 | int last; |
| 32 | struct clk *clk; | 32 | struct clk *clk; |
| 33 | struct i2c_adapter adapter; | 33 | struct i2c_adapter adapter; |
| 34 | phys_addr_t base; | ||
| 35 | int irq; | 34 | int irq; |
| 36 | u32 timeout; | 35 | u32 timeout; |
| 37 | }; | 36 | }; |
