projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e058e7a
)
i2c: img-scb: use setup_timer
author
Geliang Tang
<
[email protected]
>
Sun, 9 Apr 2017 01:41:31 +0000
(09:41 +0800)
committer
Wolfram Sang
<
[email protected]
>
Sun, 16 Apr 2017 19:51:30 +0000
(21:51 +0200)
Use setup_timer() instead of init_timer() to simplify the code.
Signed-off-by: Geliang Tang <
[email protected]
>
Signed-off-by: Wolfram Sang <
[email protected]
>
drivers/i2c/busses/i2c-img-scb.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-img-scb.c
b/drivers/i2c/busses/i2c-img-scb.c
index db8e8b40569d98aa2a4f107eddf574f0e5a31cd2..84fb35f6837f0861e628ecab0527dbc6561db008 100644
(file)
--- a/
drivers/i2c/busses/i2c-img-scb.c
+++ b/
drivers/i2c/busses/i2c-img-scb.c
@@
-1362,9
+1362,8
@@
static int img_i2c_probe(struct platform_device *pdev)
}
/* Set up the exception check timer */
- init_timer(&i2c->check_timer);
- i2c->check_timer.function = img_i2c_check_timer;
- i2c->check_timer.data = (unsigned long)i2c;
+ setup_timer(&i2c->check_timer, img_i2c_check_timer,
+ (unsigned long)i2c);
i2c->bitrate = timings[0].max_bitrate;
if (!of_property_read_u32(node, "clock-frequency", &val))