summaryrefslogtreecommitdiff
path: root/aoc_channel_dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'aoc_channel_dev.c')
-rw-r--r--aoc_channel_dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/aoc_channel_dev.c b/aoc_channel_dev.c
index 2532f79..7da42a1 100644
--- a/aoc_channel_dev.c
+++ b/aoc_channel_dev.c
@@ -855,7 +855,7 @@ static int aocc_prepare(struct device *dev)
struct aoc_service_dev *service = container_of(parent, struct aoc_service_dev, dev);
int rc;
- if (strcmp(dev_name(dev), "com.google.usf") != 0)
+ if (strcmp(dev_name(&service->dev), "com.google.usf") != 0)
return 0;
rc = aocc_send_cmd_msg(service, AOCC_CMD_SUSPEND_PREPARE, 0);
@@ -871,7 +871,7 @@ static void aocc_complete(struct device *dev)
struct aoc_service_dev *service = container_of(parent, struct aoc_service_dev, dev);
int rc;
- if (strcmp(dev_name(dev), "com.google.usf") != 0)
+ if (strcmp(dev_name(&service->dev), "com.google.usf") != 0)
return;
rc = aocc_send_cmd_msg(service, AOCC_CMD_WAKEUP_COMPELTE, 0);