summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Gielda <pgielda@antmicro.com>2013-05-06 13:38:10 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2013-06-12 21:43:53 +0200
commit04f46c6fe65b4efa08dfbb26027ffea0b81ec54a (patch)
tree2ed9eb72fb78390d760d85798aa6ca1bca25c429
parentbb608d8f147839a4c8e53476fb97f1f3eaff3db5 (diff)
video: tegra: nvmap: fix CONFIG_NVMAP_PAGE_POOLS=n compilation
Move paddr to correct ifdef to enable CONFIG_NVMAP_PAGE_POOLS=n compilation.
-rw-r--r--drivers/video/tegra/nvmap/nvmap_handle.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/tegra/nvmap/nvmap_handle.c b/drivers/video/tegra/nvmap/nvmap_handle.c
index 4b7760b22190..c1add8383e83 100644
--- a/drivers/video/tegra/nvmap/nvmap_handle.c
+++ b/drivers/video/tegra/nvmap/nvmap_handle.c
@@ -572,9 +572,10 @@ static int handle_page_alloc(struct nvmap_client *client,
#ifdef CONFIG_NVMAP_PAGE_POOLS
struct nvmap_page_pool *pool = NULL;
struct nvmap_share *share = nvmap_get_share_from_dev(h->dev);
+ unsigned long paddr;
#endif
gfp_t gfp = GFP_NVMAP;
- unsigned long kaddr, paddr;
+ unsigned long kaddr;
pte_t **pte = NULL;
if (h->userflags & NVMAP_HANDLE_ZEROED_PAGES) {