From 53d206bb4aadba255d20b70893ed5ba1d89f41e1 Mon Sep 17 00:00:00 2001 From: Alexandre Courbot Date: Fri, 2 May 2014 18:32:34 +0900 Subject: [PATCH] drm/nouveau/bar: only ioremap BAR3 if it exists Some chips that use system memory exclusively (e.g. GK20A) do not expose 2 BAR regions. For them only BAR1 exists, and it should be used for USERD mapping. Do not map BAR3 if its resource does not exist. Signed-off-by: Alexandre Courbot Reviewed-by: Thierry Reding Signed-off-by: Ben Skeggs --- Reading git-format-patch failed