[PATCH] staging: most: dim2: remove unused sysfs.h and struct medialb_bus

From: Omar Yiğitcan Mengü via B4 Relay

Date: Sat Nov 21 2026 - 16:34:05 EST


From: Omar Yiğitcan Mengü <menguomary@xxxxxxxxx>

Commit 4d5f022f3a66 ("staging: most: remove proprietary kobjects")
stopped using struct medialb_bus and replaced it with struct device,
but left the unused bus member in struct dim2_hdm and its definition
in sysfs.h behind.

Later, commit 2ab189164056 ("staging: most: dim2: do not double-register
the same device") removed sysfs.c and all remaining declarations from
sysfs.h, leaving sysfs.h with only the unused struct medialb_bus
definition.

Remove the unused bus member from struct dim2_hdm, drop the sysfs.h
include from dim2.c, and delete sysfs.h.

Signed-off-by: Omar Yiğitcan Mengü <menguomary@xxxxxxxxx>
---
drivers/staging/most/dim2/dim2.c | 2 --
drivers/staging/most/dim2/sysfs.h | 19 -------------------
2 files changed, 21 deletions(-)

diff --git a/drivers/staging/most/dim2/dim2.c b/drivers/staging/most/dim2/dim2.c
index 0e2512d16..06d5f17e0 100644
--- a/drivers/staging/most/dim2/dim2.c
+++ b/drivers/staging/most/dim2/dim2.c
@@ -20,7 +20,6 @@
#include <linux/of.h>
#include "hal.h"
#include "errors.h"
-#include "sysfs.h"

#define DMA_CHANNELS (32 - 1) /* channel 0 is a system channel */

@@ -93,7 +92,6 @@ struct dim2_hdm {
unsigned char mac_addrs[6];
unsigned char link_state;
int atx_idx;
- struct medialb_bus bus;
void (*on_netinfo)(struct most_interface *most_iface,
unsigned char link_state, unsigned char *addrs);
void (*disable_platform)(struct platform_device *pdev);
diff --git a/drivers/staging/most/dim2/sysfs.h b/drivers/staging/most/dim2/sysfs.h
deleted file mode 100644
index 60405cd47..000000000
--- a/drivers/staging/most/dim2/sysfs.h
+++ /dev/null
@@ -1,19 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * MediaLB sysfs information
- *
- * Copyright (C) 2015, Microchip Technology Germany II GmbH & Co. KG
- */
-
-/* Author: Andrey Shvetsov <andrey.shvetsov@xxxxxx> */
-
-#ifndef DIM2_SYSFS_H
-#define DIM2_SYSFS_H
-
-#include <linux/kobject.h>
-
-struct medialb_bus {
- struct kobject kobj_group;
-};
-
-#endif /* DIM2_SYSFS_H */

---
base-commit: 4f618bb81ea5403c0922bda75411c4669b8a4641
change-id: 20261122-dim2-remove-unused-sysfs-h-24acc8deded8

Best regards,
--
Omar Yiğitcan Mengü <menguomary@xxxxxxxxx>