mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-04 13:24:22 -04:00
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: Olof Johansson <olof@lixom.net>
This commit is contained in:
@@ -236,10 +236,8 @@ static int at91_cf_dt_init(struct platform_device *pdev)
|
||||
pdev->dev.platform_data = board;
|
||||
|
||||
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
|
||||
static int at91_cf_dt_init(struct platform_device *pdev)
|
||||
|
||||
Reference in New Issue
Block a user