From patchwork Fri Mar 8 10:22:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 2235721 Return-Path: X-Original-To: patchwork-davinci@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from devils.ext.ti.com (devils.ext.ti.com [198.47.26.153]) by patchwork2.kernel.org (Postfix) with ESMTP id A6FCDDF215 for ; Fri, 8 Mar 2013 10:26:18 +0000 (UTC) Received: from dlelxv30.itg.ti.com ([172.17.2.17]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id r28AMX63002737; Fri, 8 Mar 2013 04:22:33 -0600 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv30.itg.ti.com (8.13.8/8.13.8) with ESMTP id r28AMWmH025092; Fri, 8 Mar 2013 04:22:32 -0600 Received: from dlelxv23.itg.ti.com (172.17.1.198) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.2.342.3; Fri, 8 Mar 2013 04:22:32 -0600 Received: from linux.omap.com (dlelxs01.itg.ti.com [157.170.227.31]) by dlelxv23.itg.ti.com (8.13.8/8.13.8) with ESMTP id r28AMVEk020676; Fri, 8 Mar 2013 04:22:31 -0600 Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id EA0F180627; Fri, 8 Mar 2013 04:22:30 -0600 (CST) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp53.itg.ti.com (dflp53.itg.ti.com [128.247.5.6]) by linux.omap.com (Postfix) with ESMTP id 74E3980626 for ; Fri, 8 Mar 2013 04:22:29 -0600 (CST) Received: from white.ext.ti.com (white.ext.ti.com [192.94.93.38]) by dflp53.itg.ti.com (8.13.8/8.13.8) with ESMTP id r28AMTH0021800 for ; Fri, 8 Mar 2013 04:22:29 -0600 (CST) Received: from mail6.bemta7.messagelabs.com (mail6.bemta7.messagelabs.com [216.82.255.55]) by white.ext.ti.com (8.13.7/8.13.7) with ESMTP id r28AMS2v030105 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 8 Mar 2013 04:22:29 -0600 Received: from [216.82.253.163:64298] by server-2.bemta-7.messagelabs.com id 74/DD-03631-4EBB9315; Fri, 08 Mar 2013 10:22:28 +0000 X-Env-Sender: prabhakar.csengg@gmail.com X-Msg-Ref: server-2.tower-166.messagelabs.com!1362738144!11353391!1 X-Originating-IP: [209.85.160.53] X-SpamReason: No, hits=0.0 required=7.0 tests=ML_RADAR_SPEW_LINKS_14, spamassassin: X-StarScan-Received: X-StarScan-Version: 6.8.6; banners=-,-,- X-VirusChecked: Checked Received: (qmail 28003 invoked from network); 8 Mar 2013 10:22:25 -0000 Received: from mail-pb0-f53.google.com (HELO mail-pb0-f53.google.com) (209.85.160.53) by server-2.tower-166.messagelabs.com with RC4-SHA encrypted SMTP; 8 Mar 2013 10:22:25 -0000 Received: by mail-pb0-f53.google.com with SMTP id un1so1097095pbc.26 for ; Fri, 08 Mar 2013 02:22:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=P7xstomiOxSvtGyBCDEGjK12StHZzNjLL1GQQOyzpDM=; b=09LzTBZBFohuNYfEDfbxOJOWMC5h0poCFFM92RbqLdKayXMoL8Qv204vA7Dkwr4MDj /HTXx6moeu2diSLuw2PIEm+IdX58iboShKWC7RIb2ybzwT8HJDmJ81bkjrqJMSEAAUPk YZ8i6sO+UPwXOtLxT8qxY2aHL51X4SGJ11d4cqw22lri7eKOARP34buZh2D4+rleyNCn SNJCiqReeyC1wCrVP5I/HWu/G/wCiPyzQuQJXarwuftw9c1Rb3hw+aaBHJMVU595GtUj wI+0DnMCo1C0cPJ/EEhTfGzUbBAAQEt+Ufrr+NM9HNLA2jorLA+RHJs9uIJDWvlND3qd tX5g== X-Received: by 10.66.119.4 with SMTP id kq4mr3130683pab.161.1362738144825; Fri, 08 Mar 2013 02:22:24 -0800 (PST) Received: from localhost.localdomain ([122.166.13.141]) by mx.google.com with ESMTPS id ax3sm5105922pbd.42.2013.03.08.02.22.20 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 08 Mar 2013 02:22:23 -0800 (PST) From: Prabhakar lad To: LMML Subject: [PATCH] davinci: vpbe: fix module build Date: Fri, 8 Mar 2013 15:52:10 +0530 Message-ID: <1362738130-24543-1-git-send-email-prabhakar.lad@ti.com> X-Mailer: git-send-email 1.7.4.1 CC: DLOS , LKML , Mauro Carvalho Chehab X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com From: Lad, Prabhakar add a null entry in platform_device_id {}. This patch fixes following error: drivers/media/platform/davinci/vpbe_venc: struct platform_device_id is 24 bytes. The last of 3 is: 0x64 0x6d 0x33 0x35 0x35 0x2c 0x76 0x70 0x62 0x65 0x2d 0x76 0x65 0x6e 0x63 0x00 0x00 0x00 0x00 0x00 0x03 0x00 0x00 0x00 FATAL: drivers/media/platform/davinci/vpbe_venc: struct platform_device_id is not terminated with a NULL entry! make[1]: *** [__modpost] Error 1 Reported-by: Sekhar Nori Signed-off-by: Lad, Prabhakar Tested-by: Sekhar Nori --- drivers/media/platform/davinci/vpbe_osd.c | 3 +++ drivers/media/platform/davinci/vpbe_venc.c | 3 +++ 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/media/platform/davinci/vpbe_osd.c b/drivers/media/platform/davinci/vpbe_osd.c index 12ad17c..396a51c 100644 --- a/drivers/media/platform/davinci/vpbe_osd.c +++ b/drivers/media/platform/davinci/vpbe_osd.c @@ -52,6 +52,9 @@ static struct platform_device_id vpbe_osd_devtype[] = { .name = DM355_VPBE_OSD_SUBDEV_NAME, .driver_data = VPBE_VERSION_3, }, + { + /* sentinel */ + } }; MODULE_DEVICE_TABLE(platform, vpbe_osd_devtype); diff --git a/drivers/media/platform/davinci/vpbe_venc.c b/drivers/media/platform/davinci/vpbe_venc.c index bdbebd5..34c704b 100644 --- a/drivers/media/platform/davinci/vpbe_venc.c +++ b/drivers/media/platform/davinci/vpbe_venc.c @@ -51,6 +51,9 @@ static struct platform_device_id vpbe_venc_devtype[] = { .name = DM355_VPBE_VENC_SUBDEV_NAME, .driver_data = VPBE_VERSION_3, }, + { + /* sentinel */ + } }; MODULE_DEVICE_TABLE(platform, vpbe_venc_devtype);