lkml.org 
[lkml]   [2009]   [Jul]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH] register at91_ether using platform_driver_probe
    From
    From: Andrew Victor <avictor.za@gmail.com>
    Date: Wed, 22 Jul 2009 19:46:24 +0200

    > hi,
    >
    >> at91ether_probe lives in .init.text, so using platform_driver_register
    >> to register it is wrong because binding a device after the init memory
    >> is discarded (e.g. via sysfs) results in an oops.
    >>
    >> As requested by David Brownell platform_driver_probe is used instead of
    >> moving the probe function to .devinit.text as proposed initially.
    >> This saves some memory, but devices registered after the driver is
    >> probed are not bound (probably there are none) and binding via sysfs
    >> isn't possible.
    >
    >
    > Acked-by: Andrew Victor <linux@maxim.org.za>

    Applied, thanks everyone.


    \
     
     \ /
      Last update: 2009-07-22 23:01    [W:4.077 / U:0.112 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site