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:
35c9d26
)
bq20z75: Add MODULE_DEVICE_TABLE
author
Axel Lin
<
[email protected]
>
Tue, 1 Mar 2011 09:22:33 +0000
(17:22 +0800)
committer
Anton Vorontsov
<
[email protected]
>
Tue, 1 Mar 2011 19:27:46 +0000
(22:27 +0300)
The device table is required to load modules based on modaliases.
After adding the MODULE_DEVICE_TABLE, below entry will be added to
modules.alias:
alias i2c:bq20z75 bq20z75
Signed-off-by: Axel Lin <
[email protected]
>
Signed-off-by: Anton Vorontsov <
[email protected]
>
drivers/power/bq20z75.c
patch
|
blob
|
history
diff --git
a/drivers/power/bq20z75.c
b/drivers/power/bq20z75.c
index e82d10e25e8c2aa30b410b947d3a112e7e054e1c..8018e8cc7a74383c6f9bce6fd4373c39d0f18c95 100644
(file)
--- a/
drivers/power/bq20z75.c
+++ b/
drivers/power/bq20z75.c
@@
-664,6
+664,7
@@
static const struct i2c_device_id bq20z75_id[] = {
{ "bq20z75", 0 },
{}
};
+MODULE_DEVICE_TABLE(i2c, bq20z75_id);
static struct i2c_driver bq20z75_battery_driver = {
.probe = bq20z75_probe,