battery: sm5451_charger: fix build on 5.10
debugfs_create_x32 is a void. Signed-off-by: Nahuel Gómez <nahuelgomez329@gmail.com>
This commit is contained in:
parent
7fb3935edb
commit
27515e820a
1 changed files with 3 additions and 3 deletions
|
@ -1507,9 +1507,9 @@ static int sm5451_create_debugfs_entries(struct sm5451_charger *sm5451)
|
|||
return -ENOENT;
|
||||
}
|
||||
|
||||
ent = debugfs_create_x32("address", S_IFREG | S_IWUSR | S_IRUGO,
|
||||
sm5451->debug_root, &(sm5451->debug_address));
|
||||
if (!ent) {
|
||||
debugfs_create_x32("address", S_IFREG | S_IWUSR | S_IRUGO,
|
||||
sm5451->debug_root, &(sm5451->debug_address));
|
||||
if (!sm5451->debug_address) {
|
||||
dev_err(sm5451->dev, "%s: can't create address\n", __func__);
|
||||
return -ENOENT;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue