lkml.org 
[lkml]   [2008]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: adding of_platform_drivers (was: Re: [RESEND][PATCH] uio: Add of_platform_driver to uio_pdrv_genirq)
    On Tue, Dec 16, 2008 at 01:27:32PM +0100, Wolfram Sang wrote:
    > > > +/* ---------------------------------------------------------------------
    > > > + * OF bus binding
    > > > + */
    > > > +
    > > > +#if defined(CONFIG_OF)
    > >
    > > Same goes here, don't put #if in .c files please.
    >
    > So, generally speaking, this means that I should not put a
    > platform_driver and an of_platform_driver into one source file, but
    > rather create an of_$DRIVER.c then?

    Yes, this is the preferred way to do it.

    thanks,

    greg k-h


    \
     
     \ /
      Last update: 2008-12-16 18:21    [W:0.021 / U:60.684 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site