09 Jan, 2012

2 commits

  • CONFIG_OF_IRQ is not available on some platforms and using of_irq_*
    breaks the build. Since resources are already populated in the platform
    device, get the irq from there instead.

    Reported-by: David S. Miller
    Signed-off-by: Rob Herring
    Signed-off-by: Jeff Garzik

    Rob Herring
     
  • This patch converts the drivers in drivers/ata/* to use the
    module_platform_driver() macro which makes the code smaller and a bit
    simpler.

    Cc: Viresh Kumar
    Cc: Jeff Garzik
    Cc: Arnaud Patard
    Cc: Alessandro Zummo
    Cc: Sylvain Munaut
    Cc: Anton Vorontsov
    Cc: Marek Vasut
    Cc: Florian Fainelli
    Cc: Mark Miesfeld
    Cc: Ashish Kalra
    Cc: Paul Mundt
    Signed-off-by: Axel Lin
    Signed-off-by: Jeff Garzik

    Axel Lin
     

11 Nov, 2011

1 commit


08 Oct, 2011

1 commit


01 Mar, 2011

1 commit


06 Aug, 2010

1 commit

  • of_device is just an alias for platform_device, so remove it entirely. Also
    replace to_of_device() with to_platform_device() and update comment blocks.

    This patch was initially generated from the following semantic patch, and then
    edited by hand to pick up the bits that coccinelle didn't catch.

    @@
    @@
    -struct of_device
    +struct platform_device

    Signed-off-by: Grant Likely
    Reviewed-by: David S. Miller

    Grant Likely
     

22 May, 2010

1 commit

  • .name, .match_table and .owner are duplicated in both of_platform_driver
    and device_driver. This patch is a removes the extra copies from struct
    of_platform_driver and converts all users to the device_driver members.

    This patch is a pretty mechanical change. The usage model doesn't change
    and if any drivers have been missed, or if anything has been fixed up
    incorrectly, then it will fail with a compile time error, and the fixup
    will be trivial. This patch looks big and scary because it touches so
    many files, but it should be pretty safe.

    Signed-off-by: Grant Likely
    Acked-by: Sean MacLennan

    Grant Likely
     

19 May, 2010

1 commit


10 Oct, 2008

1 commit

  • When no interrupt is specified the pata_of_platform fills the irq_res
    resource with -1, which is wrong to do for two reasons:

    1. By definition, 'no irq' should be IRQ 0, not some negative integer;
    2. pata_platform checks for irq_res.start > 0, but since irq_res.start
    is unsigned type, the check will be true for `-1'.

    Reported-by: Steven A. Falco
    Signed-off-by: Anton Vorontsov
    Signed-off-by: Benjamin Herrenschmidt

    Anton Vorontsov
     

06 Feb, 2008

1 commit


16 Jan, 2008

2 commits