# Re: \[PATCH v2 mtd/fixes\] mtd: spinand: core: add missing MODULE\_DEVICE\_TABLE()

- From: Miquel Raynal \<miquel.raynal@bootlin.com\>
- Date: 2021-03-28 17:15:03 
- List: stable
- Page: https://ratatoskr.run/stable/2021/03/6318002
- Thread: https://ratatoskr.run/stable/2021/03/6312644/t.md

```text
On Tue, 2021-03-23 at 17:37:19 UTC, Alexander Lobakin wrote:
> The module misses MODULE_DEVICE_TABLE() for both SPI and OF ID tables
> and thus never autoloads on ID matches.
> Add the missing declarations.
> Present since day-0 of spinand framework introduction.
> 
> Fixes: 7529df465248 ("mtd: nand: Add core infrastructure to support SPI NANDs")
> Cc: <redacted> # 4.19+
> Signed-off-by: Alexander Lobakin <redacted>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel
```
