File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -56,9 +56,12 @@ static const struct mmc_pwrseq_ops mmc_pwrseq_sd8787_ops = {
56
56
.power_off = mmc_pwrseq_sd8787_power_off ,
57
57
};
58
58
59
+ static const u32 sd8787_delay_ms = 300 ;
60
+ static const u32 wilc1000_delay_ms = 5 ;
61
+
59
62
static const struct of_device_id mmc_pwrseq_sd8787_of_match [] = {
60
- { .compatible = "mmc-pwrseq-sd8787" , .data = ( void * ) 300 },
61
- { .compatible = "mmc-pwrseq-wilc1000" , .data = ( void * ) 5 },
63
+ { .compatible = "mmc-pwrseq-sd8787" , .data = & sd8787_delay_ms },
64
+ { .compatible = "mmc-pwrseq-wilc1000" , .data = & wilc1000_delay_ms },
62
65
{/* sentinel */ },
63
66
};
64
67
MODULE_DEVICE_TABLE (of , mmc_pwrseq_sd8787_of_match );
@@ -74,7 +77,7 @@ static int mmc_pwrseq_sd8787_probe(struct platform_device *pdev)
74
77
return - ENOMEM ;
75
78
76
79
match = of_match_node (mmc_pwrseq_sd8787_of_match , pdev -> dev .of_node );
77
- pwrseq -> reset_pwrdwn_delay_ms = (u32 )match -> data ;
80
+ pwrseq -> reset_pwrdwn_delay_ms = * (u32 * )match -> data ;
78
81
79
82
pwrseq -> pwrdn_gpio = devm_gpiod_get (dev , "powerdown" , GPIOD_OUT_LOW );
80
83
if (IS_ERR (pwrseq -> pwrdn_gpio ))
You can’t perform that action at this time.
0 commit comments