Re: [PATCH] arm: pm: call put_device instead of of_node_put in at91_pm_config_ws

2018-08-27 Thread Alexandre Belloni
On 16/08/2018 18:26:22+0800, zhong jiang wrote: > of_find_device_by_node takes a reference to the struct device when it > finds a match via get_device. but it fails to put_device in > at91_pm_config_ws, for_each_matching_node_and_match will get and put > the node properly, there is no need to call

Re: [PATCH] arm: pm: call put_device instead of of_node_put in at91_pm_config_ws

2018-08-27 Thread Alexandre Belloni
On 16/08/2018 18:26:22+0800, zhong jiang wrote: > of_find_device_by_node takes a reference to the struct device when it > finds a match via get_device. but it fails to put_device in > at91_pm_config_ws, for_each_matching_node_and_match will get and put > the node properly, there is no need to call

Re: [PATCH] arm: pm: call put_device instead of of_node_put in at91_pm_config_ws

2018-08-23 Thread zhong jiang
On 2018/8/23 20:19, Alexandre Belloni wrote: > On 23/08/2018 19:44:38+0800, zhong jiang wrote: >> Hi, alexandre >> >> Can you pick up the patch? Thanks >> > We are still in the merge window, this has to wait for v4.19-rc1. Fine. Thank you for let me know . >> Best wishes, >> zhong jiang >> >>

Re: [PATCH] arm: pm: call put_device instead of of_node_put in at91_pm_config_ws

2018-08-23 Thread zhong jiang
On 2018/8/23 20:19, Alexandre Belloni wrote: > On 23/08/2018 19:44:38+0800, zhong jiang wrote: >> Hi, alexandre >> >> Can you pick up the patch? Thanks >> > We are still in the merge window, this has to wait for v4.19-rc1. Fine. Thank you for let me know . >> Best wishes, >> zhong jiang >> >>

Re: [PATCH] arm: pm: call put_device instead of of_node_put in at91_pm_config_ws

2018-08-23 Thread Alexandre Belloni
On 23/08/2018 19:44:38+0800, zhong jiang wrote: > Hi, alexandre > > Can you pick up the patch? Thanks > We are still in the merge window, this has to wait for v4.19-rc1. > Best wishes, > zhong jiang > > On 2018/8/16 18:26, zhong jiang wrote: > > of_find_device_by_node takes a reference to

Re: [PATCH] arm: pm: call put_device instead of of_node_put in at91_pm_config_ws

2018-08-23 Thread Alexandre Belloni
On 23/08/2018 19:44:38+0800, zhong jiang wrote: > Hi, alexandre > > Can you pick up the patch? Thanks > We are still in the merge window, this has to wait for v4.19-rc1. > Best wishes, > zhong jiang > > On 2018/8/16 18:26, zhong jiang wrote: > > of_find_device_by_node takes a reference to

Re: [PATCH] arm: pm: call put_device instead of of_node_put in at91_pm_config_ws

2018-08-23 Thread zhong jiang
Hi, alexandre Can you pick up the patch? Thanks Best wishes, zhong jiang On 2018/8/16 18:26, zhong jiang wrote: > of_find_device_by_node takes a reference to the struct device when it > finds a match via get_device. but it fails to put_device in > at91_pm_config_ws,

Re: [PATCH] arm: pm: call put_device instead of of_node_put in at91_pm_config_ws

2018-08-23 Thread zhong jiang
Hi, alexandre Can you pick up the patch? Thanks Best wishes, zhong jiang On 2018/8/16 18:26, zhong jiang wrote: > of_find_device_by_node takes a reference to the struct device when it > finds a match via get_device. but it fails to put_device in > at91_pm_config_ws,

[PATCH] arm: pm: call put_device instead of of_node_put in at91_pm_config_ws

2018-08-16 Thread zhong jiang
of_find_device_by_node takes a reference to the struct device when it finds a match via get_device. but it fails to put_device in at91_pm_config_ws, for_each_matching_node_and_match will get and put the node properly, there is no need to call the of_put_node. Therefore, just call put_device

[PATCH] arm: pm: call put_device instead of of_node_put in at91_pm_config_ws

2018-08-16 Thread zhong jiang
of_find_device_by_node takes a reference to the struct device when it finds a match via get_device. but it fails to put_device in at91_pm_config_ws, for_each_matching_node_and_match will get and put the node properly, there is no need to call the of_put_node. Therefore, just call put_device