Revert "battery: sm5451_charger: fix build on 5.10"

This reverts commit 27515e820a.
This commit is contained in:
Ksawlii 2025-01-18 22:11:40 +01:00
parent daf8bac97c
commit bfc9dbe311

View file

@ -1507,9 +1507,9 @@ static int sm5451_create_debugfs_entries(struct sm5451_charger *sm5451)
return -ENOENT; return -ENOENT;
} }
debugfs_create_x32("address", S_IFREG | S_IWUSR | S_IRUGO, ent = debugfs_create_x32("address", S_IFREG | S_IWUSR | S_IRUGO,
sm5451->debug_root, &(sm5451->debug_address)); sm5451->debug_root, &(sm5451->debug_address));
if (!sm5451->debug_address) { if (!ent) {
dev_err(sm5451->dev, "%s: can't create address\n", __func__); dev_err(sm5451->dev, "%s: can't create address\n", __func__);
return -ENOENT; return -ENOENT;
} }