From patchwork Mon Dec 17 11:24:21 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 13626 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id E7E3123E11 for ; Mon, 17 Dec 2012 11:31:55 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id AA69CA19704 for ; Mon, 17 Dec 2012 11:31:55 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id c10so8862209ieb.11 for ; Mon, 17 Dec 2012 03:31:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=oX5wkNpUqfx9ijLtZAut2QjhUsJDure2fcolRUo8eE0=; b=VlNZlkb2uGhn63pl0lB2beeOdSVlmvg0FSUJdevzyvGhcsUQK6ZNvZA/vizldSoO8c 3Xnyh3pu4wz86zZOuSe8TWEBvK9hYdNH5QX4+1+rtcVf0bcZGPyT3kAQpkV326IHS/+D 7E9LOWKpi7QSP4L6dOCGj5lqNUvH4VZUFM0GxzYnZ3OUaTMwpZRO7ibN8W3N0j1a8Zhk 7seZnEiBK7sI/QUiisehJWfzvAqrz/0azHWjsvruFYOABeyBYZTLsibTzMSRCX8yzHhM hRCBEgci4JIjj9X/UR8MSSPcUQP+7P9clC8yKxgZYddwsZ0ta1unphU9Ut5nuJeWTA8A tN+w== Received: by 10.50.187.197 with SMTP id fu5mr8558638igc.70.1355743915169; Mon, 17 Dec 2012 03:31:55 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp67841igt; Mon, 17 Dec 2012 03:31:54 -0800 (PST) Received: by 10.69.0.8 with SMTP id au8mr42947717pbd.58.1355743914626; Mon, 17 Dec 2012 03:31:54 -0800 (PST) Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by mx.google.com with ESMTPS id d7si13080405paw.124.2012.12.17.03.31.54 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 17 Dec 2012 03:31:54 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.43 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.220.43; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.43 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by mail-pa0-f43.google.com with SMTP id fb10so5666457pad.16 for ; Mon, 17 Dec 2012 03:31:54 -0800 (PST) Received: by 10.68.235.2 with SMTP id ui2mr42296203pbc.163.1355743914396; Mon, 17 Dec 2012 03:31:54 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id kn3sm300177pbc.3.2012.12.17.03.31.50 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 17 Dec 2012 03:31:53 -0800 (PST) From: Sachin Kamat To: linux-samsung-soc@vger.kernel.org Cc: kgene.kim@samsung.com, patches@linaro.org, sachin.kamat@linaro.org Subject: [PATCH 3/3] ARM: EXYNOS: Fix NULL pointer dereference bug in SMDKV310 Date: Mon, 17 Dec 2012 16:54:21 +0530 Message-Id: <1355743461-21535-3-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1355743461-21535-1-git-send-email-sachin.kamat@linaro.org> References: <1355743461-21535-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQnAXuwABC1D6GHUkKiV05jtAcOPst1Ytky1rqiyCPUtGEYq7h93kS5qVZlLLSXNvDqgOBnX When DRM support for Samsung SoC and Samsung S3C framebuffer support are selected, the kernel crashes as it does not get the required platform data. Change the compile macro to CONFIG_DRM_EXYNOS_FIMD to fix this. Signed-off-by: Sachin Kamat --- arch/arm/mach-exynos/mach-smdkv310.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-exynos/mach-smdkv310.c b/arch/arm/mach-exynos/mach-smdkv310.c index b738424..35548e3 100644 --- a/arch/arm/mach-exynos/mach-smdkv310.c +++ b/arch/arm/mach-exynos/mach-smdkv310.c @@ -159,7 +159,7 @@ static struct platform_device smdkv310_lcd_lte480wv = { .dev.platform_data = &smdkv310_lcd_lte480wv_data, }; -#ifdef CONFIG_DRM_EXYNOS +#ifdef CONFIG_DRM_EXYNOS_FIMD static struct exynos_drm_fimd_pdata drm_fimd_pdata = { .panel = { .timing = { @@ -402,7 +402,7 @@ static void __init smdkv310_machine_init(void) samsung_bl_set(&smdkv310_bl_gpio_info, &smdkv310_bl_data); pwm_add_table(smdkv310_pwm_lookup, ARRAY_SIZE(smdkv310_pwm_lookup)); -#ifdef CONFIG_DRM_EXYNOS +#ifdef CONFIG_DRM_EXYNOS_FIMD s5p_device_fimd0.dev.platform_data = &drm_fimd_pdata; exynos4_fimd0_gpio_setup_24bpp(); #else