forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/drivers/gpu/drm/msm/hdmi/hdmi_pll_8960.c
....@@ -1,22 +1,13 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2016, The Linux Foundation. All rights reserved.
34 * Copyright (C) 2013 Red Hat
45 * Author: Rob Clark <robdclark@gmail.com>
5
- *
6
- * This program is free software; you can redistribute it and/or modify it
7
- * under the terms of the GNU General Public License version 2 as published by
8
- * the Free Software Foundation.
9
- *
10
- * This program is distributed in the hope that it will be useful, but WITHOUT
11
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13
- * more details.
14
- *
15
- * You should have received a copy of the GNU General Public License along with
16
- * this program. If not, see <http://www.gnu.org/licenses/>.
176 */
187
198 #include <linux/clk-provider.h>
9
+#include <linux/delay.h>
10
+
2011 #include "hdmi.h"
2112
2213 struct hdmi_pll_8960 {
....@@ -445,7 +436,7 @@
445436
446437 pll->mmio = msm_ioremap(pdev, "hdmi_pll", "HDMI_PLL");
447438 if (IS_ERR(pll->mmio)) {
448
- dev_err(dev, "failed to map pll base\n");
439
+ DRM_DEV_ERROR(dev, "failed to map pll base\n");
449440 return -ENOMEM;
450441 }
451442
....@@ -454,7 +445,7 @@
454445
455446 clk = devm_clk_register(dev, &pll->clk_hw);
456447 if (IS_ERR(clk)) {
457
- dev_err(dev, "failed to register pll clock\n");
448
+ DRM_DEV_ERROR(dev, "failed to register pll clock\n");
458449 return -EINVAL;
459450 }
460451