* [PATCH] iio kmx61 / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
@ 2015-01-09 9:39 Daniel Baluta
2015-01-10 10:32 ` Jonathan Cameron
2015-01-10 18:11 ` Jonathan Cameron
0 siblings, 2 replies; 5+ messages in thread
From: Daniel Baluta @ 2015-01-09 9:39 UTC (permalink / raw)
To: gregkh, jic23; +Cc: linux-iio, rafael.j.wysocki
After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is
selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks
depending on CONFIG_PM_RUNTIME may now be changed to depend on
CONFIG_PM.
Replace CONFIG_PM_RUNTIME with CONFIG_PM everywhere under
drivers/iio/imu/kmx61.c
Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
---
This fixes build break when merging iio patches for 3.20
into Greg's tree.
http://marc.info/?l=linux-iio&m=142077015029632&w=2
drivers/iio/imu/kmx61.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/iio/imu/kmx61.c b/drivers/iio/imu/kmx61.c
index 841b033..4e2605e 100644
--- a/drivers/iio/imu/kmx61.c
+++ b/drivers/iio/imu/kmx61.c
@@ -735,7 +735,7 @@ static int kmx61_setup_any_motion_interrupt(struct kmx61_data *data,
*/
static int kmx61_set_power_state(struct kmx61_data *data, bool on, u8 device)
{
-#ifdef CONFIG_PM_RUNTIME
+#ifdef CONFIG_PM
int ret;
if (device & KMX61_ACC) {
@@ -1523,7 +1523,7 @@ static int kmx61_resume(struct device *dev)
}
#endif
-#ifdef CONFIG_PM_RUNTIME
+#ifdef CONFIG_PM
static int kmx61_runtime_suspend(struct device *dev)
{
struct kmx61_data *data = i2c_get_clientdata(to_i2c_client(dev));
--
1.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] iio kmx61 / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
2015-01-09 9:39 [PATCH] iio kmx61 / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM Daniel Baluta
@ 2015-01-10 10:32 ` Jonathan Cameron
2015-01-10 17:30 ` Greg KH
2015-01-10 18:11 ` Jonathan Cameron
1 sibling, 1 reply; 5+ messages in thread
From: Jonathan Cameron @ 2015-01-10 10:32 UTC (permalink / raw)
To: Daniel Baluta, gregkh; +Cc: linux-iio, rafael.j.wysocki
On 09/01/15 09:39, Daniel Baluta wrote:
> After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is
> selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks
> depending on CONFIG_PM_RUNTIME may now be changed to depend on
> CONFIG_PM.
>
> Replace CONFIG_PM_RUNTIME with CONFIG_PM everywhere under
> drivers/iio/imu/kmx61.c
>
> Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Thanks Daniel, glad you tracked this down. I was wondering why
the autobuilders were happy but it broke for Greg! (short memory
sometimes, given that patch was only a month ago).
Greg, as my tree is currently behind the point where Rafael did the big
patch series to fix this (and hence doesn't have the precursor patch)
there are two obvious solutions - either I rebase, or you take
this one patch directly as a merge fix.
Which would you prefer?
Jonathan
> ---
> This fixes build break when merging iio patches for 3.20
> into Greg's tree.
> http://marc.info/?l=linux-iio&m=142077015029632&w=2
>
> drivers/iio/imu/kmx61.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/iio/imu/kmx61.c b/drivers/iio/imu/kmx61.c
> index 841b033..4e2605e 100644
> --- a/drivers/iio/imu/kmx61.c
> +++ b/drivers/iio/imu/kmx61.c
> @@ -735,7 +735,7 @@ static int kmx61_setup_any_motion_interrupt(struct kmx61_data *data,
> */
> static int kmx61_set_power_state(struct kmx61_data *data, bool on, u8 device)
> {
> -#ifdef CONFIG_PM_RUNTIME
> +#ifdef CONFIG_PM
> int ret;
>
> if (device & KMX61_ACC) {
> @@ -1523,7 +1523,7 @@ static int kmx61_resume(struct device *dev)
> }
> #endif
>
> -#ifdef CONFIG_PM_RUNTIME
> +#ifdef CONFIG_PM
> static int kmx61_runtime_suspend(struct device *dev)
> {
> struct kmx61_data *data = i2c_get_clientdata(to_i2c_client(dev));
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] iio kmx61 / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
2015-01-10 10:32 ` Jonathan Cameron
@ 2015-01-10 17:30 ` Greg KH
2015-01-15 21:01 ` Jonathan Cameron
0 siblings, 1 reply; 5+ messages in thread
From: Greg KH @ 2015-01-10 17:30 UTC (permalink / raw)
To: Jonathan Cameron; +Cc: Daniel Baluta, linux-iio, rafael.j.wysocki
On Sat, Jan 10, 2015 at 10:32:59AM +0000, Jonathan Cameron wrote:
> On 09/01/15 09:39, Daniel Baluta wrote:
> > After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is
> > selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks
> > depending on CONFIG_PM_RUNTIME may now be changed to depend on
> > CONFIG_PM.
> >
> > Replace CONFIG_PM_RUNTIME with CONFIG_PM everywhere under
> > drivers/iio/imu/kmx61.c
> >
> > Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
> Thanks Daniel, glad you tracked this down. I was wondering why
> the autobuilders were happy but it broke for Greg! (short memory
> sometimes, given that patch was only a month ago).
>
> Greg, as my tree is currently behind the point where Rafael did the big
> patch series to fix this (and hence doesn't have the precursor patch)
> there are two obvious solutions - either I rebase, or you take
> this one patch directly as a merge fix.
>
> Which would you prefer?
I can take this one on top of your tree if you ack it, that sould solve
the issue.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] iio kmx61 / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
2015-01-09 9:39 [PATCH] iio kmx61 / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM Daniel Baluta
2015-01-10 10:32 ` Jonathan Cameron
@ 2015-01-10 18:11 ` Jonathan Cameron
1 sibling, 0 replies; 5+ messages in thread
From: Jonathan Cameron @ 2015-01-10 18:11 UTC (permalink / raw)
To: Daniel Baluta, gregkh; +Cc: linux-iio, rafael.j.wysocki
On 09/01/15 09:39, Daniel Baluta wrote:
> After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is
> selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks
> depending on CONFIG_PM_RUNTIME may now be changed to depend on
> CONFIG_PM.
>
> Replace CONFIG_PM_RUNTIME with CONFIG_PM everywhere under
> drivers/iio/imu/kmx61.c
>
> Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Thanks Daniel and thanks Greg.
Should have thought to give a preemptive ack earlier!
Jonathan
> ---
> This fixes build break when merging iio patches for 3.20
> into Greg's tree.
> http://marc.info/?l=linux-iio&m=142077015029632&w=2
>
> drivers/iio/imu/kmx61.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/iio/imu/kmx61.c b/drivers/iio/imu/kmx61.c
> index 841b033..4e2605e 100644
> --- a/drivers/iio/imu/kmx61.c
> +++ b/drivers/iio/imu/kmx61.c
> @@ -735,7 +735,7 @@ static int kmx61_setup_any_motion_interrupt(struct kmx61_data *data,
> */
> static int kmx61_set_power_state(struct kmx61_data *data, bool on, u8 device)
> {
> -#ifdef CONFIG_PM_RUNTIME
> +#ifdef CONFIG_PM
> int ret;
>
> if (device & KMX61_ACC) {
> @@ -1523,7 +1523,7 @@ static int kmx61_resume(struct device *dev)
> }
> #endif
>
> -#ifdef CONFIG_PM_RUNTIME
> +#ifdef CONFIG_PM
> static int kmx61_runtime_suspend(struct device *dev)
> {
> struct kmx61_data *data = i2c_get_clientdata(to_i2c_client(dev));
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] iio kmx61 / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
2015-01-10 17:30 ` Greg KH
@ 2015-01-15 21:01 ` Jonathan Cameron
0 siblings, 0 replies; 5+ messages in thread
From: Jonathan Cameron @ 2015-01-15 21:01 UTC (permalink / raw)
To: Greg KH; +Cc: Daniel Baluta, linux-iio, rafael.j.wysocki
On 10/01/15 17:30, Greg KH wrote:
> On Sat, Jan 10, 2015 at 10:32:59AM +0000, Jonathan Cameron wrote:
>> On 09/01/15 09:39, Daniel Baluta wrote:
>>> After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is
>>> selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks
>>> depending on CONFIG_PM_RUNTIME may now be changed to depend on
>>> CONFIG_PM.
>>>
>>> Replace CONFIG_PM_RUNTIME with CONFIG_PM everywhere under
>>> drivers/iio/imu/kmx61.c
>>>
>>> Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
>> Thanks Daniel, glad you tracked this down. I was wondering why
>> the autobuilders were happy but it broke for Greg! (short memory
>> sometimes, given that patch was only a month ago).
>>
>> Greg, as my tree is currently behind the point where Rafael did the big
>> patch series to fix this (and hence doesn't have the precursor patch)
>> there are two obvious solutions - either I rebase, or you take
>> this one patch directly as a merge fix.
>>
>> Which would you prefer?
>
> I can take this one on top of your tree if you ack it, that sould solve
> the issue.
Cool - I acked a few days ago. Hope that is fine.
Thanks,
Jonathan
> thanks,
>
> greg k-h
> --
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-01-15 21:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-09 9:39 [PATCH] iio kmx61 / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM Daniel Baluta
2015-01-10 10:32 ` Jonathan Cameron
2015-01-10 17:30 ` Greg KH
2015-01-15 21:01 ` Jonathan Cameron
2015-01-10 18:11 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).