lkml.org 
[lkml]   [2012]   [Oct]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 13/17] ARM: iop13xx: fix iq81340sc_atux_map_irq prototype
    Date
    The pci map_irq callbacks get a 'const' pci_dev argument, so change the
    iop13xx version to use the same prototype as everything else.

    Without this patch, building iop13xx_defconfig results in:

    arch/arm/mach-iop13xx/iq81340sc.c:63:2: warning: initialization from incompatible pointer type [enabled by default]
    arch/arm/mach-iop13xx/iq81340sc.c:63:2: warning: (near initialization for 'iq81340sc_pci.map_irq') [enabled by default]

    Signed-off-by: Arnd Bergmann <arnd@arndb.de>
    Cc: Lennert Buytenhek <kernel@wantstofly.org>
    Cc: Dan Williams <djbw@fb.com>
    ---
    arch/arm/mach-iop13xx/iq81340sc.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/arch/arm/mach-iop13xx/iq81340sc.c b/arch/arm/mach-iop13xx/iq81340sc.c
    index 060cddd..e947441 100644
    --- a/arch/arm/mach-iop13xx/iq81340sc.c
    +++ b/arch/arm/mach-iop13xx/iq81340sc.c
    @@ -30,7 +30,7 @@
    extern int init_atu;

    static int __init
    -iq81340sc_atux_map_irq(struct pci_dev *dev, u8 idsel, u8 pin)
    +iq81340sc_atux_map_irq(const struct pci_dev *dev, u8 idsel, u8 pin)
    {
    WARN_ON(idsel < 1 || idsel > 2);

    --
    1.7.10


    \
     
     \ /
      Last update: 2012-10-02 22:41    [W:3.122 / U:0.512 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site