File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -377,22 +377,18 @@ static int da9063_rtc_probe(struct platform_device *pdev)
377
377
{
378
378
struct da9063_compatible_rtc * rtc ;
379
379
const struct da9063_compatible_rtc_regmap * config ;
380
- const struct of_device_id * match ;
381
380
int irq_alarm ;
382
381
u8 data [RTC_DATA_LEN ];
383
382
int ret ;
384
383
385
384
if (!pdev -> dev .of_node )
386
385
return - ENXIO ;
387
386
388
- match = of_match_node (da9063_compatible_reg_id_table ,
389
- pdev -> dev .of_node );
390
-
391
387
rtc = devm_kzalloc (& pdev -> dev , sizeof (* rtc ), GFP_KERNEL );
392
388
if (!rtc )
393
389
return - ENOMEM ;
394
390
395
- rtc -> config = match -> data ;
391
+ rtc -> config = device_get_match_data ( & pdev -> dev ) ;
396
392
if (of_device_is_compatible (pdev -> dev .of_node , "dlg,da9063-rtc" )) {
397
393
struct da9063 * chip = dev_get_drvdata (pdev -> dev .parent );
398
394
You can’t perform that action at this time.
0 commit comments