[lkml]   [2010]   [Jul]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] MTD: pxa2xx: move pxa2xx_flash_probe to .devinit.text
    Uwe Kleine-König wrote:

    > This fixes the following warning by modpost:

    > WARNING: vmlinux.o(.data+0x15018): Section mismatch in reference from the variable pxa2xx_flash_driver to the function .init.text:pxa2xx_flash_probe()
    > The variable pxa2xx_flash_driver references
    > the function __init pxa2xx_flash_probe()
    > If the reference is valid then annotate the
    > variable with __init* or __refdata (see linux/init.h) or name the variable:
    > *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,

    > I choosed to do this instead of using platform_driver_probe as the remove


    > function uses __devexit.

    Perhaps remove() method should have been fixed instead -- I doubt that
    this is a hotplug device.

    WBR, Sergei

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2010-07-30 18:03    [W:0.022 / U:8.764 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site