summaryrefslogtreecommitdiff
path: root/components/drivers/pm
diff options
context:
space:
mode:
authorfangjianzhou <[email protected]>2023-11-28 14:20:11 +0800
committerGitHub <[email protected]>2023-11-28 14:20:11 +0800
commit249871cbbcdc14f1c16a2d502639780ebc6ae078 (patch)
tree95b9bd49d440bd9e18c0614e33451a59ea410445 /components/drivers/pm
parentc06f4e98fce6c86ef412aa70c1f31c971a9d61a9 (diff)
[libcpu][aarch64] 使用设备树对CPU进行初始化 (#8221)
Diffstat (limited to 'components/drivers/pm')
-rw-r--r--components/drivers/pm/pm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/drivers/pm/pm.c b/components/drivers/pm/pm.c
index 61f5337846..024e301792 100644
--- a/components/drivers/pm/pm.c
+++ b/components/drivers/pm/pm.c
@@ -901,12 +901,12 @@ static rt_err_t _rt_pm_device_control(rt_device_t dev,
switch (cmd)
{
case RT_PM_DEVICE_CTRL_REQUEST:
- mode = (rt_uint32_t)args;
+ mode = (rt_uint32_t)(rt_ubase_t)args;
rt_pm_request(mode);
break;
case RT_PM_DEVICE_CTRL_RELEASE:
- mode = (rt_uint32_t)args;
+ mode = (rt_uint32_t)(rt_ubase_t)args;
rt_pm_release(mode);
break;
}