From a5969cabbb4660eab42b6ef0412cbbd1200cf14d Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Sat, 12 Oct 2024 07:10:09 +0000
Subject: [PATCH] 修改led为gpio
---
kernel/drivers/clk/tegra/clk-bpmp.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/kernel/drivers/clk/tegra/clk-bpmp.c b/kernel/drivers/clk/tegra/clk-bpmp.c
index 5847241..0084504 100644
--- a/kernel/drivers/clk/tegra/clk-bpmp.c
+++ b/kernel/drivers/clk/tegra/clk-bpmp.c
@@ -1,9 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (C) 2016 NVIDIA Corporation
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
*/
#include <linux/clk-provider.h>
@@ -162,7 +159,7 @@
err = tegra_bpmp_clk_transfer(clk->bpmp, &msg);
if (err < 0)
- return err;
+ return 0;
return response.rate;
}
@@ -471,7 +468,7 @@
unsigned int num_clocks)
{
struct tegra_bpmp_clk *clk;
- struct clk_init_data init = {};
+ struct clk_init_data init;
const char **parents;
unsigned int i;
int err;
--
Gitblit v1.6.2