forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/mmc/host/sdhci-xenon-phy.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * PHY support for Xenon SDHC
34 *
....@@ -5,10 +6,6 @@
56 *
67 * Author: Hu Ziji <huziji@marvell.com>
78 * Date: 2016-8-24
8
- *
9
- * This program is free software; you can redistribute it and/or
10
- * modify it under the terms of the GNU General Public License as
11
- * published by the Free Software Foundation version 2.
129 */
1310
1411 #include <linux/slab.h>
....@@ -530,7 +527,7 @@
530527 ret = true;
531528 break;
532529 }
533
- /* else: fall through */
530
+ fallthrough;
534531 default:
535532 reg &= ~XENON_TIMING_ADJUST_SLOW_MODE;
536533 ret = false;
....@@ -664,8 +661,8 @@
664661 return 0;
665662
666663 if (of_address_to_resource(np, 1, &iomem)) {
667
- dev_err(mmc_dev(host->mmc), "Unable to find SoC PAD ctrl register address for %s\n",
668
- np->name);
664
+ dev_err(mmc_dev(host->mmc), "Unable to find SoC PAD ctrl register address for %pOFn\n",
665
+ np);
669666 return -EINVAL;
670667 }
671668