From mboxrd@z Thu Jan 1 00:00:00 1970 From: jekhor@gmail.com (Yauhen Kharuzhy) Date: Tue, 22 Jun 2010 16:16:23 +0300 Subject: [PATCH 2/4] ARM: S3C2416: Set name of the framebuffer device only if it present In-Reply-To: <1277212585-25605-2-git-send-email-jekhor@gmail.com> References: <1277212585-25605-1-git-send-email-jekhor@gmail.com> <1277212585-25605-2-git-send-email-jekhor@gmail.com> Message-ID: <1277212585-25605-3-git-send-email-jekhor@gmail.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Fix case when board doesn't have LCD connected and doesn't have corresponding platform device compiled. Signed-off-by: Yauhen Kharuzhy --- arch/arm/mach-s3c2416/s3c2416.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-s3c2416/s3c2416.c b/arch/arm/mach-s3c2416/s3c2416.c index 35dabcc..355ab62 100644 --- a/arch/arm/mach-s3c2416/s3c2416.c +++ b/arch/arm/mach-s3c2416/s3c2416.c @@ -90,7 +90,9 @@ int __init s3c2416_init(void) s3c_i2c0_setname("s3c2440-i2c"); s3c_i2c1_setname("s3c2440-i2c"); +#ifdef CONFIG_S3C_DEV_FB s3c_device_fb.name = "s3c2443-fb"; +#endif return sysdev_register(&s3c2416_sysdev); } -- 1.6.6.1