|
|
@@ -75,7 +75,7 @@ struct atmel_tc *atmel_tc_alloc(unsigned block, const char *name)
|
|
|
return tc;
|
|
|
|
|
|
fail_ioremap:
|
|
|
- release_resource(r);
|
|
|
+ release_mem_region(r->start, ATMEL_TC_IOMEM_SIZE);
|
|
|
fail:
|
|
|
tc = NULL;
|
|
|
goto out;
|
|
|
@@ -95,7 +95,7 @@ void atmel_tc_free(struct atmel_tc *tc)
|
|
|
spin_lock(&tc_list_lock);
|
|
|
if (tc->regs) {
|
|
|
iounmap(tc->regs);
|
|
|
- release_resource(tc->iomem);
|
|
|
+ release_mem_region(tc->iomem->start, ATMEL_TC_IOMEM_SIZE);
|
|
|
tc->regs = NULL;
|
|
|
tc->iomem = NULL;
|
|
|
}
|