| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (c) 2016, The Linux Foundation. All rights reserved. |
|---|
| 3 | | - * |
|---|
| 4 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 5 | | - * it under the terms of the GNU General Public License version 2 and |
|---|
| 6 | | - * only version 2 as published by the Free Software Foundation. |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 9 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 10 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 11 | | - * GNU General Public License for more details. |
|---|
| 12 | 4 | */ |
|---|
| 13 | 5 | |
|---|
| 14 | 6 | #include <linux/clk.h> |
|---|
| .. | .. |
|---|
| 783 | 775 | POLL_TIMEOUT_US); |
|---|
| 784 | 776 | |
|---|
| 785 | 777 | if (unlikely(!locked)) |
|---|
| 786 | | - dev_err(&pll_14nm->pdev->dev, "DSI PLL lock failed\n"); |
|---|
| 778 | + DRM_DEV_ERROR(&pll_14nm->pdev->dev, "DSI PLL lock failed\n"); |
|---|
| 787 | 779 | else |
|---|
| 788 | 780 | DBG("DSI PLL lock success"); |
|---|
| 789 | 781 | |
|---|
| .. | .. |
|---|
| 829 | 821 | ret = dsi_pll_14nm_vco_set_rate(&pll->clk_hw, |
|---|
| 830 | 822 | cached_state->vco_rate, 0); |
|---|
| 831 | 823 | if (ret) { |
|---|
| 832 | | - dev_err(&pll_14nm->pdev->dev, |
|---|
| 824 | + DRM_DEV_ERROR(&pll_14nm->pdev->dev, |
|---|
| 833 | 825 | "restore vco rate failed. ret=%d\n", ret); |
|---|
| 834 | 826 | return ret; |
|---|
| 835 | 827 | } |
|---|
| .. | .. |
|---|
| 1039 | 1031 | ret = of_clk_add_hw_provider(dev->of_node, of_clk_hw_onecell_get, |
|---|
| 1040 | 1032 | pll_14nm->hw_data); |
|---|
| 1041 | 1033 | if (ret) { |
|---|
| 1042 | | - dev_err(dev, "failed to register clk provider: %d\n", ret); |
|---|
| 1034 | + DRM_DEV_ERROR(dev, "failed to register clk provider: %d\n", ret); |
|---|
| 1043 | 1035 | return ret; |
|---|
| 1044 | 1036 | } |
|---|
| 1045 | 1037 | |
|---|
| .. | .. |
|---|
| 1067 | 1059 | |
|---|
| 1068 | 1060 | pll_14nm->phy_cmn_mmio = msm_ioremap(pdev, "dsi_phy", "DSI_PHY"); |
|---|
| 1069 | 1061 | if (IS_ERR_OR_NULL(pll_14nm->phy_cmn_mmio)) { |
|---|
| 1070 | | - dev_err(&pdev->dev, "failed to map CMN PHY base\n"); |
|---|
| 1062 | + DRM_DEV_ERROR(&pdev->dev, "failed to map CMN PHY base\n"); |
|---|
| 1071 | 1063 | return ERR_PTR(-ENOMEM); |
|---|
| 1072 | 1064 | } |
|---|
| 1073 | 1065 | |
|---|
| 1074 | 1066 | pll_14nm->mmio = msm_ioremap(pdev, "dsi_pll", "DSI_PLL"); |
|---|
| 1075 | 1067 | if (IS_ERR_OR_NULL(pll_14nm->mmio)) { |
|---|
| 1076 | | - dev_err(&pdev->dev, "failed to map PLL base\n"); |
|---|
| 1068 | + DRM_DEV_ERROR(&pdev->dev, "failed to map PLL base\n"); |
|---|
| 1077 | 1069 | return ERR_PTR(-ENOMEM); |
|---|
| 1078 | 1070 | } |
|---|
| 1079 | 1071 | |
|---|
| .. | .. |
|---|
| 1096 | 1088 | |
|---|
| 1097 | 1089 | ret = pll_14nm_register(pll_14nm); |
|---|
| 1098 | 1090 | if (ret) { |
|---|
| 1099 | | - dev_err(&pdev->dev, "failed to register PLL: %d\n", ret); |
|---|
| 1091 | + DRM_DEV_ERROR(&pdev->dev, "failed to register PLL: %d\n", ret); |
|---|
| 1100 | 1092 | return ERR_PTR(ret); |
|---|
| 1101 | 1093 | } |
|---|
| 1102 | 1094 | |
|---|