1. 20 Jan, 2004 6 commits
  2. 10 Jan, 2004 2 commits
    • David Brownell's avatar
      [ARM PATCH] 1710/1: pxa2xx_udc (2/5) mach-pxa/idp.c uses INIT_MACHINE · e5297dd3
      David Brownell authored
      Patch from David Brownell
      
      This just makes the IDP initialization code use this initcall, so
      that it won't run unless it's actually on IDP hardware.
      
      Depends on the INIT_MACHINE patch (#1 this series).
      e5297dd3
    • David Brownell's avatar
      [ARM PATCH] 1712/1: pxa2xx_udc (1/5) add INIT_MACHINE · f64009a7
      David Brownell authored
      Patch from David Brownell
      
      This adds a mechanism for a per-machine initcall, one that's
      guaranteed to run only to initialize a kernel running on that
      specific hardware.  It's not strictly necessary, but it does
      eliminate the need for certain boilerplate in machine-specific
      support, to ensure it's only running on the right hardware:
      
            /* in arch/arm/mach-xxx/MYMACHINE.c */
            ...
            static int __init init_MYMACHINE(void)
            {
                 if (!mach_is_MYMACHINE())       // often forgotten!!
                      return -EINVAL;
                 ... declare and customize platform devices
                 ...
                 return 0;
            }
            arch_initcall(init_MYMACHINE);
      
      An init_MYMACHINE() call still exists, but it'd be declared
      as part of the machine definition.
      
      f64009a7
  3. 09 Jan, 2004 3 commits
  4. 08 Jan, 2004 29 commits