resource: memory: Add RESOURCE_DRIVER_NO_DEVICE flag 18/271218/12
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 17 Feb 2022 03:21:06 +0000 (12:21 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 18 Feb 2022 07:52:00 +0000 (16:52 +0900)
Add RESOURCE_DRIVER_NO_DEVICE flag because memory resouce device
is always existing and fix wrong word.

Change-Id: Iad20a8d7f68a38925c74460e1eda51ec7a1e5128
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
src/resource/resource-memory.c

index b4ef902..15131b1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * PASS (Power Aware System Service) - CPU Resource Driver
+ * PASS (Power Aware System Service) - Memory Resource Driver
  *
  * Copyright (c) 2022 Samsung Electronics Co., Ltd.
  *
@@ -151,10 +151,11 @@ static const struct resource_attribute memory_attrs[] = {
        },
 };
 
-static const struct resource_driver cpu_resource_driver = {
+static const struct resource_driver memory_resource_driver = {
        .name           = "MEMORY",
        .type           = RESOURCE_TYPE_MEMORY,
        .attrs          = memory_attrs,
        .num_attrs      = ARRAY_SIZE(memory_attrs),
+       .flags          = RESOURCE_DRIVER_NO_DEVICE,
 };
-RESOURCE_DRIVER_REGISTER(&cpu_resource_driver)
+RESOURCE_DRIVER_REGISTER(&memory_resource_driver)