File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change 12
12
#include <linux/io.h>
13
13
#include <linux/kernel.h>
14
14
#include <linux/module.h>
15
- #include <linux/of_address.h>
16
- #include <linux/of_device.h>
15
+ #include <linux/of.h>
17
16
#include <linux/platform_device.h>
17
+ #include <linux/property.h>
18
18
#include <linux/regmap.h>
19
19
#include <linux/suspend.h>
20
20
#include <linux/devfreq-event.h>
@@ -507,7 +507,6 @@ static int of_get_devfreq_events(struct device_node *np,
507
507
struct device * dev = info -> dev ;
508
508
struct device_node * events_np , * node ;
509
509
int i , j , count ;
510
- const struct of_device_id * of_id ;
511
510
int ret ;
512
511
513
512
events_np = of_get_child_by_name (np , "events" );
@@ -525,13 +524,7 @@ static int of_get_devfreq_events(struct device_node *np,
525
524
}
526
525
info -> num_events = count ;
527
526
528
- of_id = of_match_device (exynos_ppmu_id_match , dev );
529
- if (of_id )
530
- info -> ppmu_type = (enum exynos_ppmu_type )of_id -> data ;
531
- else {
532
- of_node_put (events_np );
533
- return - EINVAL ;
534
- }
527
+ info -> ppmu_type = (enum exynos_ppmu_type )device_get_match_data (dev );
535
528
536
529
j = 0 ;
537
530
for_each_child_of_node (events_np , node ) {
You can’t perform that action at this time.
0 commit comments