@@ -31,7 +31,7 @@ static int __devinit pmu_register(struct platform_device *pdev,
3131{
3232 if (type < 0 || type >= ARM_NUM_PMU_DEVICES ) {
3333 pr_warning ("received registration request for unknown "
34- "device %d\n" , type );
34+ "PMU device type %d\n" , type );
3535 return - EINVAL ;
3636 }
3737
@@ -112,29 +112,29 @@ static int __init register_pmu_driver(void)
112112device_initcall (register_pmu_driver );
113113
114114struct platform_device *
115- reserve_pmu (enum arm_pmu_type device )
115+ reserve_pmu (enum arm_pmu_type type )
116116{
117117 struct platform_device * pdev ;
118118
119- if (test_and_set_bit_lock (device , & pmu_lock )) {
119+ if (test_and_set_bit_lock (type , & pmu_lock )) {
120120 pdev = ERR_PTR (- EBUSY );
121- } else if (pmu_devices [device ] == NULL ) {
122- clear_bit_unlock (device , & pmu_lock );
121+ } else if (pmu_devices [type ] == NULL ) {
122+ clear_bit_unlock (type , & pmu_lock );
123123 pdev = ERR_PTR (- ENODEV );
124124 } else {
125- pdev = pmu_devices [device ];
125+ pdev = pmu_devices [type ];
126126 }
127127
128128 return pdev ;
129129}
130130EXPORT_SYMBOL_GPL (reserve_pmu );
131131
132132int
133- release_pmu (enum arm_pmu_type device )
133+ release_pmu (enum arm_pmu_type type )
134134{
135- if (WARN_ON (!pmu_devices [device ]))
135+ if (WARN_ON (!pmu_devices [type ]))
136136 return - EINVAL ;
137- clear_bit_unlock (device , & pmu_lock );
137+ clear_bit_unlock (type , & pmu_lock );
138138 return 0 ;
139139}
140140EXPORT_SYMBOL_GPL (release_pmu );
@@ -182,17 +182,17 @@ init_cpu_pmu(void)
182182}
183183
184184int
185- init_pmu (enum arm_pmu_type device )
185+ init_pmu (enum arm_pmu_type type )
186186{
187187 int err = 0 ;
188188
189- switch (device ) {
189+ switch (type ) {
190190 case ARM_PMU_DEVICE_CPU :
191191 err = init_cpu_pmu ();
192192 break ;
193193 default :
194- pr_warning ("attempt to initialise unknown device %d\n" ,
195- device );
194+ pr_warning ("attempt to initialise PMU of unknown "
195+ "type %d\n" , type );
196196 err = - EINVAL ;
197197 }
198198
0 commit comments