File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ int sdw_master_read_prop(struct sdw_bus *bus)
51
51
{
52
52
struct sdw_master_prop * prop = & bus -> prop ;
53
53
struct fwnode_handle * link ;
54
+ const char * scales_prop ;
54
55
char name [32 ];
55
56
int nval ;
56
57
int ret ;
@@ -112,7 +113,12 @@ int sdw_master_read_prop(struct sdw_bus *bus)
112
113
}
113
114
}
114
115
115
- nval = fwnode_property_count_u32 (link , "mipi-sdw-supported-clock-gears" );
116
+ scales_prop = "mipi-sdw-supported-clock-scales" ;
117
+ nval = fwnode_property_count_u32 (link , scales_prop );
118
+ if (nval == 0 ) {
119
+ scales_prop = "mipi-sdw-supported-clock-gears" ;
120
+ nval = fwnode_property_count_u32 (link , scales_prop );
121
+ }
116
122
if (nval > 0 ) {
117
123
prop -> num_clk_gears = nval ;
118
124
prop -> clk_gears = devm_kcalloc (bus -> dev , prop -> num_clk_gears ,
@@ -124,7 +130,7 @@ int sdw_master_read_prop(struct sdw_bus *bus)
124
130
}
125
131
126
132
ret = fwnode_property_read_u32_array (link ,
127
- "mipi-sdw-supported-clock-gears" ,
133
+ scales_prop ,
128
134
prop -> clk_gears ,
129
135
prop -> num_clk_gears );
130
136
if (ret < 0 )
You can’t perform that action at this time.
0 commit comments