File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -72,13 +72,6 @@ struct aml_rtc_data {
7272 const struct aml_rtc_config * config ;
7373};
7474
75- static const struct regmap_config aml_rtc_regmap_config = {
76- .reg_bits = 32 ,
77- .val_bits = 32 ,
78- .reg_stride = 4 ,
79- .max_register = RTC_REAL_TIME ,
80- };
81-
8275static inline u32 gray_to_binary (u32 gray )
8376{
8477 u32 bcd = gray ;
@@ -328,6 +321,13 @@ static int aml_rtc_probe(struct platform_device *pdev)
328321 void __iomem * base ;
329322 int ret = 0 ;
330323
324+ const struct regmap_config aml_rtc_regmap_config = {
325+ .reg_bits = 32 ,
326+ .val_bits = 32 ,
327+ .reg_stride = 4 ,
328+ .max_register = RTC_REAL_TIME ,
329+ };
330+
331331 rtc = devm_kzalloc (dev , sizeof (* rtc ), GFP_KERNEL );
332332 if (!rtc )
333333 return - ENOMEM ;
You can’t perform that action at this time.
0 commit comments