From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ey0-f170.google.com (mail-ey0-f170.google.com [209.85.215.170]) by ozlabs.org (Postfix) with ESMTP id 8FF0CB70CC for ; Thu, 16 Sep 2010 17:27:49 +1000 (EST) Received: by eyg24 with SMTP id 24so652604eyg.15 for ; Thu, 16 Sep 2010 00:27:47 -0700 (PDT) Date: Thu, 16 Sep 2010 11:27:42 +0400 From: Anton Vorontsov To: Roy Zang Subject: Re: [PATCH 1/3 v3] P4080/eLBC: Make Freescale elbc interrupt common to elbc devices Message-ID: <20100916072742.GA3176@oksana.dev.rtsoft.ru> References: <1284619284-23614-1-git-send-email-tie-fei.zang@freescale.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 In-Reply-To: <1284619284-23614-1-git-send-email-tie-fei.zang@freescale.com> Cc: B07421@freescale.com, dedekind1@gmail.com, B25806@freescale.com, linuxppc-dev@ozlabs.org, linux-mtd@lists.infradead.org, akpm@linux-foundation.org, dwmw2@infradead.org, B11780@freescale.com List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, Sep 16, 2010 at 02:41:22PM +0800, Roy Zang wrote: [...] > +static const struct platform_device_id fsl_lbc_match[] = { > + { "fsl,elbc", }, > + { "fsl,pq3-localbus", }, > + { "fsl,pq2-localbus", }, > + { "fsl,pq2pro-localbus", }, > + {}, > +}; > + > +static struct platform_driver fsl_lbc_ctrl_driver = { > + .driver = { > + .name = "fsl-lbc", > + }, > + .probe = fsl_lbc_ctrl_probe, > + .id_table = fsl_lbc_match, > +}; No, it won't work that way (at least not w/o a device constructor somewhere in fsl_soc.c). Instead, you should write something like static const struct of_device_id fsl_lbc_match[] = { ... }; static struct platform_driver fsl_lbc_ctrl_driver = { .driver = { .name = "fsl-lbc", .of_match_table = fsl_lbc_match; } ... }; (Note that platform_driver.driver has of_match_table nowadays -- that's what makes it possible to seamlessly transit from of_platform_driver to platform_driver.) The same applies for the second patch as well. Thanks, -- Anton Vorontsov email: cbouatmailru@gmail.com irc://irc.freenode.net/bd2