提交 57e36159 编写于 作者: O Olof Johansson

Merge tag 'at91-ab-4.16-drivers' of...

Merge tag 'at91-ab-4.16-drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux into next/drivers

drivers for 4.16

 - use PTR_ERR_OR_ZERO were relevant in at91_cf

* tag 'at91-ab-4.16-drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux:
  pcmcia: at91_cf: Use PTR_ERR_OR_ZERO()
Signed-off-by: NOlof Johansson <olof@lixom.net>
...@@ -236,10 +236,8 @@ static int at91_cf_dt_init(struct platform_device *pdev) ...@@ -236,10 +236,8 @@ static int at91_cf_dt_init(struct platform_device *pdev)
pdev->dev.platform_data = board; pdev->dev.platform_data = board;
mc = syscon_regmap_lookup_by_compatible("atmel,at91rm9200-sdramc"); mc = syscon_regmap_lookup_by_compatible("atmel,at91rm9200-sdramc");
if (IS_ERR(mc))
return PTR_ERR(mc);
return 0; return PTR_ERR_OR_ZERO(mc);
} }
#else #else
static int at91_cf_dt_init(struct platform_device *pdev) static int at91_cf_dt_init(struct platform_device *pdev)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册