.. | .. |
---|
| 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-provider.h> |
---|
| 7 | +#include <linux/delay.h> |
---|
15 | 8 | |
---|
16 | 9 | #include "hdmi.h" |
---|
17 | 10 | |
---|
.. | .. |
---|
725 | 718 | |
---|
726 | 719 | pll->mmio_qserdes_com = msm_ioremap(pdev, "hdmi_pll", "HDMI_PLL"); |
---|
727 | 720 | 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"); |
---|
729 | 722 | return -ENOMEM; |
---|
730 | 723 | } |
---|
731 | 724 | |
---|
.. | .. |
---|
737 | 730 | |
---|
738 | 731 | pll->mmio_qserdes_tx[i] = msm_ioremap(pdev, name, label); |
---|
739 | 732 | 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"); |
---|
741 | 734 | return -ENOMEM; |
---|
742 | 735 | } |
---|
743 | 736 | } |
---|
.. | .. |
---|
745 | 738 | |
---|
746 | 739 | clk = devm_clk_register(dev, &pll->clk_hw); |
---|
747 | 740 | 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"); |
---|
749 | 742 | return -EINVAL; |
---|
750 | 743 | } |
---|
751 | 744 | |
---|