mmi_check_dynamic_device_node() uses of_find_node_by_path() to get device node so that mmi_device_is_available() can use this node to find where is "mmi,status".but need use of_node_put() to put this node in there drivers. So move "mmi_device_is_available()" into "mmi_check_dynamic_device_node()" and put the device node at the end. Change-Id: Id42e73b844ef6928ebea673dcd7f9c57c8804f8b Reviewed-on: https://gerrit.mot.com/2271017 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Konstantin Makariev <kmakariev@motorola.com> Submit-Approved: Jira Key
20 lines
744 B
C
20 lines
744 B
C
/* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
* only version 2 as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
#ifndef __MMI_DEVICE_H_INCLUDED
|
|
#define __MMI_DEVICE_H_INCLUDED
|
|
|
|
bool mmi_device_is_available(struct device_node *np);
|
|
bool mmi_check_dynamic_device_node(char *dev_name);
|
|
|
|
#endif /* __MMI_DEVICE_H_INCLUDED */
|