WIP FPC-III support
[linux/fpc-iii.git] / drivers / mtd / nand / raw / brcmnand / brcmstb_nand.c
blob950923d977b7271c8ecca9e387692471c867337f
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * Copyright © 2015 Broadcom Corporation
4 */
6 #include <linux/device.h>
7 #include <linux/module.h>
8 #include <linux/mod_devicetable.h>
9 #include <linux/platform_device.h>
11 #include "brcmnand.h"
13 static const struct of_device_id brcmstb_nand_of_match[] = {
14 { .compatible = "brcm,brcmnand" },
15 {},
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,
27 .driver = {
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");