Updates the pm-qos array indexes to match upstream
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 12 Jan 2010 00:44:06 +0000 (16:44 -0800)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 12 Jan 2010 00:44:06 +0000 (16:44 -0800)
This style is used now upstream for the pm-qos object array
declaration.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
compat/compat-2.6.25.c

index e1a81ae..7ce4232 100644 (file)
@@ -107,11 +107,11 @@ static struct pm_qos_object system_bus_freq_pm_qos = {
 
 
 static struct pm_qos_object *pm_qos_array[] = {
-       &null_pm_qos,
-       &cpu_dma_pm_qos,
-       &network_lat_pm_qos,
-       &network_throughput_pm_qos,
-       &system_bus_freq_pm_qos,
+       [PM_QOS_RESERVED] = &null_pm_qos,
+       [PM_QOS_CPU_DMA_LATENCY] = &cpu_dma_pm_qos,
+       [PM_QOS_NETWORK_LATENCY] = &network_lat_pm_qos,
+       [PM_QOS_NETWORK_THROUGHPUT] = &network_throughput_pm_qos,
+       [PM_QOS_SYSTEM_BUS_FREQ] = &system_bus_freq_pm_qos,
 };
 
 static DEFINE_SPINLOCK(pm_qos_lock);