mtd: Use device_get_match_data()
authorRob Herring <robh@kernel.org>
Mon, 9 Oct 2023 17:28:56 +0000 (12:28 -0500)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 16 Oct 2023 09:13:27 +0000 (11:13 +0200)
commit6135e730f81d7fdb8864f9f8e102bcb8c8351552
treef6df717398da9f1ab0e9fc1293795bbe7a76d8a7
parent3ee355dbc78d3dcb7f17a8b3c8eaaa38c54499b7
mtd: Use device_get_match_data()

Use preferred device_get_match_data() instead of of_match_device() to
get the driver match data. With this, adjust the includes to explicitly
include the correct headers.

Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20231009172923.2457844-1-robh@kernel.org
drivers/mtd/maps/physmap-core.c
drivers/mtd/nand/raw/cadence-nand-controller.c
drivers/mtd/nand/raw/vf610_nfc.c