示例#1
0
static int msm_flash_sky81296_platform_probe(struct platform_device *pdev)
{
    const struct of_device_id *match;
    pr_info("%s entry\n", __func__);
    match = of_match_device(sky81296_trigger_dt_match, &pdev->dev);
    if (!match)
        return -EFAULT;
    return msm_flash_probe(pdev, match->data);
}
示例#2
0
static int msm_flash_bd7710_platform_probe(struct platform_device *pdev)
{
	const struct of_device_id *match;

	match = of_match_device(bd7710_trigger_dt_match, &pdev->dev);
	if (!match)
		return -EFAULT;
	return msm_flash_probe(pdev, match->data);
}