summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2025-10-28 15:22:22 +0100
committerNeil Armstrong <[email protected]>2025-10-28 17:32:29 +0100
commitea97b856179338a51cb6fd3fef07680e5e2c662a (patch)
tree282e6d078d239df52db59598111c1e90f7d4c237 /drivers
parent9b37b6001759c2727568255de1169c942b9aa185 (diff)
ufs: core: Fold ufs-uclass into ufs
Move the few lines of ufs-uclass.c into ufs.c and remove the ufs-uclass.c . No functional change. Reviewed-by: Neil Armstrong <[email protected]> Signed-off-by: Marek Vasut <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Neil Armstrong <[email protected]>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ufs/Makefile2
-rw-r--r--drivers/ufs/ufs-uclass.c17
-rw-r--r--drivers/ufs/ufs.c6
3 files changed, 7 insertions, 18 deletions
diff --git a/drivers/ufs/Makefile b/drivers/ufs/Makefile
index 04892d75fe6..9fcb53ee6af 100644
--- a/drivers/ufs/Makefile
+++ b/drivers/ufs/Makefile
@@ -3,7 +3,7 @@
# Copyright (C) 2019 Texas Instruments Incorporated - https://www.ti.com
#
-obj-$(CONFIG_UFS) += ufs.o ufs-uclass.o
+obj-$(CONFIG_UFS) += ufs.o
obj-$(CONFIG_CADENCE_UFS) += cdns-platform.o
obj-$(CONFIG_UFS_MEDIATEK) += ufs-mediatek.o
obj-$(CONFIG_QCOM_UFS) += ufs-qcom.o
diff --git a/drivers/ufs/ufs-uclass.c b/drivers/ufs/ufs-uclass.c
deleted file mode 100644
index 334bfcfa06a..00000000000
--- a/drivers/ufs/ufs-uclass.c
+++ /dev/null
@@ -1,17 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-/**
- * ufs-uclass.c - Universal Flash Storage (UFS) Uclass driver
- *
- * Copyright (C) 2019 Texas Instruments Incorporated - https://www.ti.com
- */
-
-#define LOG_CATEGORY UCLASS_UFS
-
-#include "ufs.h"
-#include <dm.h>
-
-UCLASS_DRIVER(ufs) = {
- .id = UCLASS_UFS,
- .name = "ufs",
- .per_device_auto = sizeof(struct ufs_hba),
-};
diff --git a/drivers/ufs/ufs.c b/drivers/ufs/ufs.c
index b4f994c5bc0..6d1f9ac1d5f 100644
--- a/drivers/ufs/ufs.c
+++ b/drivers/ufs/ufs.c
@@ -2302,3 +2302,9 @@ U_BOOT_DRIVER(ufs_scsi) = {
.name = "ufs_scsi",
.ops = &ufs_ops,
};
+
+UCLASS_DRIVER(ufs) = {
+ .id = UCLASS_UFS,
+ .name = "ufs",
+ .per_device_auto = sizeof(struct ufs_hba),
+};