treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174
[linux-2.6-block.git] / drivers / mtd / nand / raw / brcmnand / brcmstb_nand.c
CommitLineData
1802d0be 1// SPDX-License-Identifier: GPL-2.0-only
303b4420
BN
2/*
3 * Copyright © 2015 Broadcom Corporation
303b4420
BN
4 */
5
6#include <linux/device.h>
7#include <linux/module.h>
ac316725 8#include <linux/mod_devicetable.h>
303b4420
BN
9#include <linux/platform_device.h>
10
11#include "brcmnand.h"
12
13static const struct of_device_id brcmstb_nand_of_match[] = {
14 { .compatible = "brcm,brcmnand" },
15 {},
16};
17MODULE_DEVICE_TABLE(of, brcmstb_nand_of_match);
18
19static int brcmstb_nand_probe(struct platform_device *pdev)
20{
21 return brcmnand_probe(pdev, NULL);
22}
23
24static 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};
33module_platform_driver(brcmstb_nand_driver);
34
35MODULE_LICENSE("GPL v2");
36MODULE_AUTHOR("Brian Norris");
37MODULE_DESCRIPTION("NAND driver for Broadcom STB chips");