summaryrefslogtreecommitdiffstats
path: root/src/power/Linux_HostedServiceProvider.c
diff options
context:
space:
mode:
authorRadek Novacek <rnovacek@redhat.com>2012-07-30 14:31:30 +0200
committerRadek Novacek <rnovacek@redhat.com>2012-07-30 14:57:59 +0200
commit81550f470d8224582867054a221445626393d58b (patch)
tree4e6bc3a9191011097160079ab8e1be283a3ea58a /src/power/Linux_HostedServiceProvider.c
parent0826d3ff487b5ce5fece56767e6cf88f81059c03 (diff)
downloadopenlmi-providers-81550f470d8224582867054a221445626393d58b.tar.gz
openlmi-providers-81550f470d8224582867054a221445626393d58b.tar.xz
openlmi-providers-81550f470d8224582867054a221445626393d58b.zip
power: use get_system_creation_class_name function in the provider
Diffstat (limited to 'src/power/Linux_HostedServiceProvider.c')
-rw-r--r--src/power/Linux_HostedServiceProvider.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/power/Linux_HostedServiceProvider.c b/src/power/Linux_HostedServiceProvider.c
index 8a65fe9..7b50150 100644
--- a/src/power/Linux_HostedServiceProvider.c
+++ b/src/power/Linux_HostedServiceProvider.c
@@ -2,7 +2,6 @@
#include <cmpimacs.h>
#include <konkret/konkret.h>
#include "Linux_HostedService.h"
-#include "Linux_ComputerSystem.h"
#include "globals.h"
@@ -56,7 +55,7 @@ static CMPIStatus Linux_HostedServiceEnumInstances(
Linux_PowerManagementServiceRef_Set_Name(&powerManagementServiceRef, get_system_name());
Linux_PowerManagementServiceRef_Set_SystemName(&powerManagementServiceRef, get_system_name());
Linux_PowerManagementServiceRef_Set_CreationClassName(&powerManagementServiceRef, "Linux_PowerManagementService");
- Linux_PowerManagementServiceRef_Set_SystemCreationClassName(&powerManagementServiceRef, "Linux_ComputerSystem");
+ Linux_PowerManagementServiceRef_Set_SystemCreationClassName(&powerManagementServiceRef, get_system_creation_class_name());
Linux_HostedService_Set_Dependent(&w, &powerManagementServiceRef);
KReturnInstance(cr, w);