[PATCH 2/2] pwm: pwm-aspeed: Add missing <linux/log2.h> to pwm-aspeed.c

Tom Rini trini at konsulko.com
Mon Aug 4 23:53:54 CEST 2025


This driver references the logarithmic macros while relying on an
indirection inclusion of <linux/log2.h>. Add the missing include
directly.

Signed-off-by: Tom Rini <trini at konsulko.com>
---
 drivers/pwm/pwm-aspeed.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/pwm/pwm-aspeed.c b/drivers/pwm/pwm-aspeed.c
index ebc9d9a89752..eefe018448f4 100644
--- a/drivers/pwm/pwm-aspeed.c
+++ b/drivers/pwm/pwm-aspeed.c
@@ -46,6 +46,7 @@
 #include <regmap.h>
 #include <syscon.h>
 #include <dm/device_compat.h>
+#include <linux/log2.h>
 #include <linux/math64.h>
 #include <linux/bitfield.h>
 #include <linux/time.h>
-- 
2.43.0



More information about the U-Boot mailing list