Merge remote-tracking branch 'sound-asoc/for-next'
[deliverable/linux.git] / drivers / mtd / nand / brcmnand / brcmstb_nand.c
CommitLineData
303b4420
BN
1/*
2 * Copyright © 2015 Broadcom Corporation
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 */
13
14#include <linux/device.h>
15#include <linux/module.h>
16#include <linux/platform_device.h>
17
18#include "brcmnand.h"
19
20static const struct of_device_id brcmstb_nand_of_match[] = {
21 { .compatible = "brcm,brcmnand" },
22 {},
23};
24MODULE_DEVICE_TABLE(of, brcmstb_nand_of_match);
25
26static int brcmstb_nand_probe(struct platform_device *pdev)
27{
28 return brcmnand_probe(pdev, NULL);
29}
30
31static struct platform_driver brcmstb_nand_driver = {
32 .probe = brcmstb_nand_probe,
33 .remove = brcmnand_remove,
34 .driver = {
35 .name = "brcmstb_nand",
36 .pm = &brcmnand_pm_ops,
37 .of_match_table = brcmstb_nand_of_match,
38 }
39};
40module_platform_driver(brcmstb_nand_driver);
41
42MODULE_LICENSE("GPL v2");
43MODULE_AUTHOR("Brian Norris");
44MODULE_DESCRIPTION("NAND driver for Broadcom STB chips");
This page took 0.128719 seconds and 5 git commands to generate.