summaryrefslogtreecommitdiff
path: root/components/drivers/pm/pm.c
diff options
context:
space:
mode:
Diffstat (limited to 'components/drivers/pm/pm.c')
-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;
}