1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright © 2015 Broadcom Corporation
6 #include <linux/device.h>
7 #include <linux/module.h>
8 #include <linux/mod_devicetable.h>
9 #include <linux/platform_device.h>
13 static const struct of_device_id brcmstb_nand_of_match
[] = {
14 { .compatible
= "brcm,brcmnand" },
17 MODULE_DEVICE_TABLE(of
, brcmstb_nand_of_match
);
19 static int brcmstb_nand_probe(struct platform_device
*pdev
)
21 return brcmnand_probe(pdev
, NULL
);
24 static struct platform_driver brcmstb_nand_driver
= {
25 .probe
= brcmstb_nand_probe
,
26 .remove
= brcmnand_remove
,
28 .name
= "brcmstb_nand",
29 .pm
= &brcmnand_pm_ops
,
30 .of_match_table
= brcmstb_nand_of_match
,
33 module_platform_driver(brcmstb_nand_driver
);
35 MODULE_LICENSE("GPL v2");
36 MODULE_AUTHOR("Brian Norris");
37 MODULE_DESCRIPTION("NAND driver for Broadcom STB chips");