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 <neil.armstrong@linaro.org>
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Link: https://patch.msgid.link/20251028142335.18125-2-marek.vasut+renesas@mailbox.org
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
This commit is contained in:
Marek Vasut 2025-10-28 15:22:22 +01:00 committed by Neil Armstrong
parent 9b37b60017
commit ea97b85617
3 changed files with 7 additions and 18 deletions

View File

@ -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

View File

@ -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),
};

View File

@ -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),
};