hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/fpga/xilinx-pr-decoupler.c
....@@ -1,18 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2017, National Instruments Corp.
34 * Copyright (c) 2017, Xilix Inc
45 *
56 * FPGA Bridge Driver for the Xilinx LogiCORE Partial Reconfiguration
67 * Decoupler IP Core.
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; version 2 of the License.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU General Public License for more details.
168 */
179
1810 #include <linux/clk.h>
....@@ -109,7 +101,8 @@
109101
110102 priv->clk = devm_clk_get(&pdev->dev, "aclk");
111103 if (IS_ERR(priv->clk)) {
112
- dev_err(&pdev->dev, "input clock not found\n");
104
+ if (PTR_ERR(priv->clk) != -EPROBE_DEFER)
105
+ dev_err(&pdev->dev, "input clock not found\n");
113106 return PTR_ERR(priv->clk);
114107 }
115108
....@@ -121,8 +114,8 @@
121114
122115 clk_disable(priv->clk);
123116
124
- br = fpga_bridge_create(&pdev->dev, "Xilinx PR Decoupler",
125
- &xlnx_pr_decoupler_br_ops, priv);
117
+ br = devm_fpga_bridge_create(&pdev->dev, "Xilinx PR Decoupler",
118
+ &xlnx_pr_decoupler_br_ops, priv);
126119 if (!br) {
127120 err = -ENOMEM;
128121 goto err_clk;