mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 06:01:23 +00:00
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>
This commit is contained in:
parent
d9a3afc2cf
commit
d1ccc125f3
2 changed files with 13 additions and 52 deletions
|
@ -31,7 +31,6 @@ struct i2c_pnx_algo_data {
|
|||
int last;
|
||||
struct clk *clk;
|
||||
struct i2c_adapter adapter;
|
||||
phys_addr_t base;
|
||||
int irq;
|
||||
u32 timeout;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue