forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge power-supply fixes for 6.6 cycle
Merge power-supply fixes for the 6.6 cycle, so that changes to the vexpress driver apply cleanly. Signed-off-by: Sebastian Reichel <[email protected]>
- Loading branch information
Showing
12 changed files
with
35 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1045,6 +1045,13 @@ static void rk817_charging_monitor(struct work_struct *work) | |
queue_delayed_work(system_wq, &charger->work, msecs_to_jiffies(8000)); | ||
} | ||
|
||
static void rk817_cleanup_node(void *data) | ||
{ | ||
struct device_node *node = data; | ||
|
||
of_node_put(node); | ||
} | ||
|
||
static int rk817_charger_probe(struct platform_device *pdev) | ||
{ | ||
struct rk808 *rk808 = dev_get_drvdata(pdev->dev.parent); | ||
|
@@ -1061,11 +1068,13 @@ static int rk817_charger_probe(struct platform_device *pdev) | |
if (!node) | ||
return -ENODEV; | ||
|
||
ret = devm_add_action_or_reset(&pdev->dev, rk817_cleanup_node, node); | ||
if (ret) | ||
return ret; | ||
|
||
charger = devm_kzalloc(&pdev->dev, sizeof(*charger), GFP_KERNEL); | ||
if (!charger) { | ||
of_node_put(node); | ||
if (!charger) | ||
return -ENOMEM; | ||
} | ||
|
||
charger->rk808 = rk808; | ||
|
||
|
@@ -1224,3 +1233,4 @@ MODULE_DESCRIPTION("Battery power supply driver for RK817 PMIC"); | |
MODULE_AUTHOR("Maya Matuszczyk <[email protected]>"); | ||
MODULE_AUTHOR("Chris Morgan <[email protected]>"); | ||
MODULE_LICENSE("GPL"); | ||
MODULE_ALIAS("platform:rk817-charger"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters