1. 10 Jan, 2004 1 commit
    • 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
  2. 09 Jan, 2004 3 commits
  3. 08 Jan, 2004 33 commits
  4. 07 Jan, 2004 3 commits