• Anton Vorontsov's avatar
    Convert the m25p80 driver so that now it uses .id_table for device · 93df4cda
    Anton Vorontsov authored
    matching, making it properly detect devices on OpenFirmware platforms
    (prior to this patch the driver misdetected non-JEDEC chips, seeing all
    chips as "m25p80").
    
    Also, now jedec_probe() only does jedec probing, nothing else.  If it is
    not able to detect a chip, NULL is returned and the driver fall backs to
    the information specified by the platform (platform_data, or exact ID).
    Signed-off-by: default avatarAnton Vorontsov <avorontsov@ru.mvista.com>
    Cc: David Brownell <dbrownell@users.sourceforge.net>
    Cc: David Woodhouse <dwmw2@infradead.org>
    Cc: Grant Likely <grant.likely@secretlab.ca>
    Cc: Jean Delvare <khali@linux-fr.org>
    Cc: Ben Dooks <ben-linux@fluff.org>
    Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    93df4cda
m25p80.c 20.6 KB