mfd: twl-core: Don't specify regulator consumers by struct device
Subsystems (2)
PATCH 1/1 mfd: twl-core: Don't specify regulator consumers by struct device
This has been deprecated for considerable time now and support has been removed from the regulator API. dev_name should be used instead.
---
I'll apply this to the regulator tree as it's thrown up issues due to the removal of dev from regulator_consumer_supply - please let me know if this is an issue, I can back it out easily enough.
drivers/mfd/twl-core.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/mfd/twl-core.c +4 -4
@@ -751,9 +751,9 @@ add_children(struct twl4030_platform_data *pdata, unsigned long features)/* we need to connect regulators to this transceiver */ if (twl_has_regulator () && child) { - usb1v5.dev = child; - usb1v8.dev = child; - usb3v1.dev = child; + usb1v5.dev_name =dev_name (child); + usb1v8.dev_name =dev_name (child); + usb3v1.dev_name =dev_name (child); } }if (twl_has_usb () && pdata->usb &&twl_class_is_6030 ()) {
@@ -799,7 +799,7 @@ add_children(struct twl4030_platform_data *pdata, unsigned long features)return PTR_ERR (child);/* we need to connect regulators to this transceiver */ if (twl_has_regulator () && child) - usb3v3.dev = child; + usb3v3.dev_name =dev_name (child); }else if (twl_has_regulator () &&twl_class_is_6030 ()) {if (features &TWL6025_SUBCLASS ) child = add_regulator(TWL6025_REG_LDOUSB,
Signature · 1 line
1.7.9.rc1
Quoted 2 lines · Mark Brown
This has been deprecated for considerable time now and support has been removed from the regulator API.
dev_nameshould be used instead.
Hi Mark,
Quoted 2 lines · Mark Brown
This has been deprecated for considerable time now and support has been removed from the regulator API.
dev_nameshould be used instead.
Thanks for the quick fix. I applied this one to my for-next branch as well.
Quoted 7 lines
Reported-by Stephen Rothwell <[email protected]>Signed-off-by Mark Brown <[email protected]>---
I'll apply this to the regulator tree as it's thrown up issues due to the removal of dev from
regulator_consumer_supply- please let me know if this is an issue, I can back it out easily enough.
When did the regulator API get modified ? During the last merge window, or is this one something Linus should be pulling ASAP ?
Cheers,
Samuel.
Signature · 2 lines
Intel Open Source Technology Centre http://oss.intel.com/
Quoted 8 lines · Samuel Ortiz
Quoted 3 lines · Mark Brown
I'll apply this to the regulator tree as it's thrown up issues due to the removal of dev from
regulator_consumer_supply- please let me know if this is an issue, I can back it out easily enough.When did the regulator API get modified ? During the last merge window, or is this one something Linus should be pulling ASAP ?
The API has been deprecated forever but it's only removed in -next.