summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/imx31/gigabeat-s/mc13783-imx31.c2
-rw-r--r--firmware/usb.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/imx31/gigabeat-s/mc13783-imx31.c b/firmware/target/arm/imx31/gigabeat-s/mc13783-imx31.c
index 81849d0852..22987abf74 100644
--- a/firmware/target/arm/imx31/gigabeat-s/mc13783-imx31.c
+++ b/firmware/target/arm/imx31/gigabeat-s/mc13783-imx31.c
@@ -159,7 +159,7 @@ void mc13783_init(void)
#ifdef PMIC_DRIVER_CLOSE
void mc13783_close(void)
{
- unsigned int thread_id = mc13783_thread_p;
+ unsigned int thread_id = mc13783_thread_id;
if (thread_id == 0)
return;
diff --git a/firmware/usb.c b/firmware/usb.c
index 2bff53e5d6..95c33ad8e9 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -539,7 +539,7 @@ void usb_start_monitoring(void)
#ifdef USB_DRIVER_CLOSE
void usb_close(void)
{
- uintptr_t thread = usb_thread_entry;
+ unsigned int thread = usb_thread_entry;
usb_thread_entry = 0;
if (thread == 0)