forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c
....@@ -1,17 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * 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.
124 */
135
146 #include <linux/clk-provider.h>
7
+#include <linux/delay.h>
158
169 #include "hdmi.h"
1710
....@@ -725,7 +718,7 @@
725718
726719 pll->mmio_qserdes_com = msm_ioremap(pdev, "hdmi_pll", "HDMI_PLL");
727720 if (IS_ERR(pll->mmio_qserdes_com)) {
728
- dev_err(dev, "failed to map pll base\n");
721
+ DRM_DEV_ERROR(dev, "failed to map pll base\n");
729722 return -ENOMEM;
730723 }
731724
....@@ -737,7 +730,7 @@
737730
738731 pll->mmio_qserdes_tx[i] = msm_ioremap(pdev, name, label);
739732 if (IS_ERR(pll->mmio_qserdes_tx[i])) {
740
- dev_err(dev, "failed to map pll base\n");
733
+ DRM_DEV_ERROR(dev, "failed to map pll base\n");
741734 return -ENOMEM;
742735 }
743736 }
....@@ -745,7 +738,7 @@
745738
746739 clk = devm_clk_register(dev, &pll->clk_hw);
747740 if (IS_ERR(clk)) {
748
- dev_err(dev, "failed to register pll clock\n");
741
+ DRM_DEV_ERROR(dev, "failed to register pll clock\n");
749742 return -EINVAL;
750743 }
751744