File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ static int uniphier_glue_reset_probe(struct platform_device *pdev)
47
47
struct device * dev = & pdev -> dev ;
48
48
struct uniphier_glue_reset_priv * priv ;
49
49
struct resource * res ;
50
- resource_size_t size ;
51
50
int i , ret ;
52
51
53
52
priv = devm_kzalloc (dev , sizeof (* priv ), GFP_KERNEL );
@@ -60,7 +59,6 @@ static int uniphier_glue_reset_probe(struct platform_device *pdev)
60
59
return - EINVAL ;
61
60
62
61
res = platform_get_resource (pdev , IORESOURCE_MEM , 0 );
63
- size = resource_size (res );
64
62
priv -> rdata .membase = devm_ioremap_resource (dev , res );
65
63
if (IS_ERR (priv -> rdata .membase ))
66
64
return PTR_ERR (priv -> rdata .membase );
@@ -96,7 +94,7 @@ static int uniphier_glue_reset_probe(struct platform_device *pdev)
96
94
97
95
spin_lock_init (& priv -> rdata .lock );
98
96
priv -> rdata .rcdev .owner = THIS_MODULE ;
99
- priv -> rdata .rcdev .nr_resets = size * BITS_PER_BYTE ;
97
+ priv -> rdata .rcdev .nr_resets = resource_size ( res ) * BITS_PER_BYTE ;
100
98
priv -> rdata .rcdev .ops = & reset_simple_ops ;
101
99
priv -> rdata .rcdev .of_node = dev -> of_node ;
102
100
priv -> rdata .active_low = true;
You can’t perform that action at this time.
0 commit comments