[PATCH v3 1/3] staging: sm750fb: remove unused <asm/mtrr.h> include
From: Chhabilal Dangal
Date: Tue May 12 2026 - 02:41:26 EST
sm750_hw.c includes <asm/mtrr.h> under CONFIG_MTRR, but no
mtrr_add/mtrr_del calls exist in the file; the driver uses
arch_phys_wc_add/arch_phys_wc_del in sm750.c instead.
Remove the dead include.
Signed-off-by: Chhabilal Dangal <yogeshdangal66@xxxxxxxxx>
---
drivers/staging/sm750fb/sm750_hw.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/staging/sm750fb/sm750_hw.c b/drivers/staging/sm750fb/sm750_hw.c
index a2798d428663..f491d3aca468 100644
--- a/drivers/staging/sm750fb/sm750_hw.c
+++ b/drivers/staging/sm750fb/sm750_hw.c
@@ -13,10 +13,6 @@
#include <linux/vmalloc.h>
#include <linux/pagemap.h>
#include <linux/console.h>
-#ifdef CONFIG_MTRR
-#include <asm/mtrr.h>
-#endif
-#include <linux/platform_device.h>
#include <linux/sizes.h>
#include "sm750.h"
--
2.54.0