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 @@ -94,7 +94,6 @@ struct iTCO_wdt_private {
94
94
* NO_REBOOT flag is Memory-Mapped GCS register bit 5 (TCO version 2),
95
95
* or memory-mapped PMC register bit 4 (TCO version 3).
96
96
*/
97
- struct resource * gcs_pmc_res ;
98
97
unsigned long __iomem * gcs_pmc ;
99
98
/* the lock for io operations */
100
99
spinlock_t io_lock ;
@@ -497,10 +496,7 @@ static int iTCO_wdt_probe(struct platform_device *pdev)
497
496
*/
498
497
if (p -> iTCO_version >= 2 && p -> iTCO_version < 6 &&
499
498
!pdata -> no_reboot_use_pmc ) {
500
- p -> gcs_pmc_res = platform_get_resource (pdev ,
501
- IORESOURCE_MEM ,
502
- ICH_RES_MEM_GCS_PMC );
503
- p -> gcs_pmc = devm_ioremap_resource (dev , p -> gcs_pmc_res );
499
+ p -> gcs_pmc = devm_platform_ioremap_resource (pdev , ICH_RES_MEM_GCS_PMC );
504
500
if (IS_ERR (p -> gcs_pmc ))
505
501
return PTR_ERR (p -> gcs_pmc );
506
502
}
You can’t perform that action at this time.
0 commit comments