[PATCH 4/5] rtc: gamecube: Use unsigned int for control0
From: Thorsten Blum
Date: Mon Nov 09 2026 - 17:46:45 EST
regmap_read() expects an unsigned int pointer for its output value.
Declare control0 as unsigned int to match the expected type.
Signed-off-by: Thorsten Blum <blum@xxxxxxxxxx>
---
drivers/rtc/rtc-gamecube.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/rtc/rtc-gamecube.c b/drivers/rtc/rtc-gamecube.c
index 4b45274effdf..ec672bee0134 100644
--- a/drivers/rtc/rtc-gamecube.c
+++ b/drivers/rtc/rtc-gamecube.c
@@ -190,7 +190,7 @@ static int gamecube_rtc_ioctl(struct device *dev, unsigned int cmd, unsigned lon
{
struct priv *d = dev_get_drvdata(dev);
int value;
- int control0;
+ unsigned int control0;
int ret;
switch (cmd) {