Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers/video/omap2/dss: don't check resource with devm_ioremap_resource

devm_ioremap_resource does sanity checks on the given resource. No need to
duplicate this in the driver.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>

-4
-4
drivers/video/omap2/dss/hdmi.c
··· 1065 1065 mutex_init(&hdmi.ip_data.lock); 1066 1066 1067 1067 res = platform_get_resource(hdmi.pdev, IORESOURCE_MEM, 0); 1068 - if (!res) { 1069 - DSSERR("can't get IORESOURCE_MEM HDMI\n"); 1070 - return -EINVAL; 1071 - } 1072 1068 1073 1069 /* Base address taken from platform */ 1074 1070 hdmi.ip_data.base_wp = devm_ioremap_resource(&pdev->dev, res);