[PATCH v2 1/5] m25p80,spi-nor: Fix module aliases for m25p80
Brian Norris
computersforpeace at gmail.com
Fri Oct 17 09:23:35 PDT 2014
On Thu, Oct 09, 2014 at 09:51:26PM -0700, Brian Norris wrote:
> On Tue, Sep 30, 2014 at 03:14:55AM +0100, Ben Hutchings wrote:
> > m25p80's device ID table is now spi_nor_ids, defined in spi-nor. The
> > MODULE_DEVICE_TABLE() macro doesn't work with extern definitions, but
> > its use was also removed at the same time. Now if m25p80 is built as
> > a module it doesn't get the necessary aliases to be loaded
> > automatically.
> >
> > A clean solution to this will involve defining the list of device
> > IDs in spi-nor.h and removing struct spi_device_id from the spi-nor
> > API, but this is quite a large change.
> >
> > As a quick fix suitable for stable, copy the device IDs back into
> > m25p80.
> >
> > Fixes: 03e296f613af ("mtd: m25p80: use the SPI nor framework")
> > Cc: stable <stable at vger.kernel.org> # 3.16.x: 32f1b7c8352f: mtd: move support for struct flash_platform_data into m25p80
> > Cc: stable <stable at vger.kernel.org> # 3.16.x
> > Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
>
> Can I get any acks/tested-by's? I'll try to test this out when I get
> back to the office, but I'd like to be able to send this in the 3.18
> cycle still.
Applied this patch to l2-mtd/master. Thanks!
Acks/tested-by's are still welcome. I plan to send this out in 3.18
(maybe for -rc2) if things look good.
Brian
More information about the linux-mtd
mailing list