imx-audmix.c (b86ef5367761603df5f66ce08fb014b991f6b51d) | imx-audmix.c (de70b2a581125a8a627db6fdc1d7f9c05536fe84) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright 2017 NXP 4 * 5 * The code contained herein is licensed under the GNU General Public 6 * License. You may obtain a copy of the GNU General Public License 7 * Version 2 or later at the following locations: 8 * --- 147 unchanged lines hidden (view full) --- 156 if (pdev->dev.parent) { 157 audmix_np = pdev->dev.parent->of_node; 158 } else { 159 dev_err(&pdev->dev, "Missing parent device.\n"); 160 return -EINVAL; 161 } 162 163 if (!audmix_np) { | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright 2017 NXP 4 * 5 * The code contained herein is licensed under the GNU General Public 6 * License. You may obtain a copy of the GNU General Public License 7 * Version 2 or later at the following locations: 8 * --- 147 unchanged lines hidden (view full) --- 156 if (pdev->dev.parent) { 157 audmix_np = pdev->dev.parent->of_node; 158 } else { 159 dev_err(&pdev->dev, "Missing parent device.\n"); 160 return -EINVAL; 161 } 162 163 if (!audmix_np) { |
164 dev_err(&pdev->dev, "Missign DT node for parent device.\n"); | 164 dev_err(&pdev->dev, "Missing DT node for parent device.\n"); |
165 return -EINVAL; 166 } 167 168 audmix_pdev = of_find_device_by_node(audmix_np); 169 if (!audmix_pdev) { 170 dev_err(&pdev->dev, "Missing AUDMIX platform device for %s\n", 171 np->full_name); 172 return -EINVAL; --- 155 unchanged lines hidden --- | 165 return -EINVAL; 166 } 167 168 audmix_pdev = of_find_device_by_node(audmix_np); 169 if (!audmix_pdev) { 170 dev_err(&pdev->dev, "Missing AUDMIX platform device for %s\n", 171 np->full_name); 172 return -EINVAL; --- 155 unchanged lines hidden --- |