1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3  * Copyright © 2015 Broadcom Corporation
4  */
5 
6 #include <linux/device.h>
7 #include <linux/module.h>
8 #include <linux/mod_devicetable.h>
9 #include <linux/platform_device.h>
10 
11 #include "brcmnand.h"
12 
13 static const struct of_device_id brcmstb_nand_of_match[] = {
14 	{ .compatible = "brcm,brcmnand" },
15 	{},
16 };
17 MODULE_DEVICE_TABLE(of, brcmstb_nand_of_match);
18 
brcmstb_nand_probe(struct platform_device * pdev)19 static int brcmstb_nand_probe(struct platform_device *pdev)
20 {
21 	return brcmnand_probe(pdev, NULL);
22 }
23 
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,
31 	}
32 };
33 module_platform_driver(brcmstb_nand_driver);
34 
35 MODULE_LICENSE("GPL v2");
36 MODULE_AUTHOR("Brian Norris");
37 MODULE_DESCRIPTION("NAND driver for Broadcom STB chips");
38