diff options
author | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-12-02 10:54:25 +0100 |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2018-12-06 00:45:36 +0530 |
commit | 492151b2093ee4df173f7e10da4938ef7c2a2156 (patch) | |
tree | a8504809ea0a342aef1dc7b53d6565e9e2d0d819 /drivers/clk | |
parent | a02820fca90ce9ccf243b3fce59c04dabd5671a8 (diff) |
mtd: sf: Make sure we don't register the same device twice
spi_flash_mtd_register() can be called several times and each time it
will register the same mtd_info instance like if it was a new one.
The MTD ID allocation gets crazy when that happens, so let's track the
status of the sf_mtd_info object to avoid that.
Fixes: 9fe6d8716e09 ("mtd, spi: Add MTD layer driver")
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Tested-by: Heiko Schocher <hs@denx.de>
Reviewed-by: Jagan Teki <jagan@openedev.com>
Diffstat (limited to 'drivers/clk')
0 files changed, 0 insertions, 0 deletions