Applied "regulator: 88pm800: Remove owner" to the regulator tree
Mark Brown
maintainerThe patch
regulator: 88pm800: Remove owner
has been applied to the regulator tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
f44ca44b14d697a047b7c1b32b29a1d9881f050fMon Sep 17 00:00:00 2001
From: Mark Brown <[email protected]>
Date: Thu, 16 Jul 2015 22:17:32 +0100
Subject: [PATCH] regulator: 88pm800: Remove owner
--- drivers/regulator/88pm800.c | 2 -- 1 file changed, 2 deletions(-)
drivers/regulator/88pm800.c +0 -2
@@ -103,7 +103,6 @@ struct pm800_regulators { .ops = &pm800_volt_range_ops, \ .type = REGULATOR_VOLTAGE, \ .id = PM800_ID_##vreg, \ - .owner = THIS_MODULE, \ .n_voltages = n_volt, \ .linear_ranges = volt_ranges, \ .n_linear_ranges = ARRAY_SIZE(volt_ranges), \
@@ -133,7 +132,6 @@ struct pm800_regulators { .ops = &pm800_volt_table_ops, \ .type = REGULATOR_VOLTAGE, \ .id = PM800_ID_##vreg, \ - .owner = THIS_MODULE, \ .n_voltages = ARRAY_SIZE(ldo_volt_table), \ .vsel_reg = PM800_##vreg##_VOUT, \ .vsel_mask = 0x1f, \
Signature · 1 line
2.1.4
2015-07-17 6:19 GMT+09:00 Mark Brown <[email protected]>:
Quoted 24 lines
The patch
regulator: 88pm800: Remove owner
has been applied to the regulator tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.gitAll being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Quoted 7 lines
Thanks,
MarkFrom
f44ca44b14d697a047b7c1b32b29a1d9881f050fMon Sep 17 00:00:00 2001
From: Mark Brown <[email protected]>
Date: Thu, 16 Jul 2015 22:17:32 +0100
Subject: [PATCH] regulator: 88pm800: Remove owner
Hi Mark,
I wonder why? Isn't the owner needed for module_get/module_put or am I missing something?
Best regards,
Krzysztof
Quoted 34 lines
Signed-off-by Mark Brown <[email protected]>--- drivers/regulator/88pm800.c | 2 -- 1 file changed, 2 deletions(-)drivers/regulator/88pm800.c +0
-3@@ -103,7 +103,6 @@ struct pm800_regulators { .ops = &pm800_volt_range_ops, \ .type = REGULATOR_VOLTAGE, \ .id = PM800_ID_##vreg, \ - .owner = THIS_MODULE, \ .n_voltages = n_volt, \ .linear_ranges = volt_ranges, \ .n_linear_ranges = ARRAY_SIZE(volt_ranges), \@@ -133,7 +132,6 @@ struct pm800_regulators { .ops = &pm800_volt_table_ops, \ .type = REGULATOR_VOLTAGE, \ .id = PM800_ID_##vreg, \ - .owner = THIS_MODULE, \ .n_voltages = ARRAY_SIZE(ldo_volt_table), \ .vsel_reg = PM800_##vreg##_VOUT, \ .vsel_mask = 0x1f, \ --2.1.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Mark Brown
maintainerQuoted 2 lines · Krzysztof Kozlowski
I wonder why? Isn't the owner needed for module_get/module_put or am I missing something?
The driver core apparently now does this and we shouldn't be doing it statically so we get all this code churn. I'm not sure I understand the win TBH.
2015-07-17 18:43 GMT+09:00 Mark Brown <[email protected]>:
Quoted 8 lines · Krzysztof Kozlowski
Quoted 3 lines
I wonder why? Isn't the owner needed for module_get/module_put or am I missing something?
The driver core apparently now does this and we shouldn't be doing it statically so we get all this code churn. I'm not sure I understand the win TBH.
If you are referring to my recent patchset it was about platform and i2c drivers where appropriate register functions do it (e.g. i2c_register_driver()). But regulator_register passes owner from regulator_desc:rdev->owner = regulator_desc->owner;
and then calls device_register(). I think the owner for regulator device won't be set.
Best regards,
Krzysztof
Mark Brown
maintainerQuoted 10 lines · Krzysztof Kozlowski
2015-07-17 18:43 GMT+09:00 Mark Brown <[email protected]>:
Quoted 3 lines
The driver core apparently now does this and we shouldn't be doing it statically so we get all this code churn. I'm not sure I understand the win TBH.
If you are referring to my recent patchset it was about platform and i2c drivers where appropriate register functions do it (e.g.
i2c_register_driver()). Butregulator_registerpasses owner fromregulator_desc:
It's not just your patch set, it's the latest thing in code churn.
Quoted 3 lines
rdev->owner=regulator_desc->owner;
and then callsdevice_register(). I think the owner for regulator device won't be set.
Oh, right yes. Picked the wrong bit of code when merging a code motion patch.