Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 as published by the free software foundation this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 655 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Richard Fontana <rfontana@redhat.com> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190527070034.575739538@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
37 lines
885 B
C
37 lines
885 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* Copyright © 2015 Broadcom Corporation
|
|
*/
|
|
|
|
#include <linux/device.h>
|
|
#include <linux/module.h>
|
|
#include <linux/mod_devicetable.h>
|
|
#include <linux/platform_device.h>
|
|
|
|
#include "brcmnand.h"
|
|
|
|
static const struct of_device_id brcmstb_nand_of_match[] = {
|
|
{ .compatible = "brcm,brcmnand" },
|
|
{},
|
|
};
|
|
MODULE_DEVICE_TABLE(of, brcmstb_nand_of_match);
|
|
|
|
static int brcmstb_nand_probe(struct platform_device *pdev)
|
|
{
|
|
return brcmnand_probe(pdev, NULL);
|
|
}
|
|
|
|
static struct platform_driver brcmstb_nand_driver = {
|
|
.probe = brcmstb_nand_probe,
|
|
.remove = brcmnand_remove,
|
|
.driver = {
|
|
.name = "brcmstb_nand",
|
|
.pm = &brcmnand_pm_ops,
|
|
.of_match_table = brcmstb_nand_of_match,
|
|
}
|
|
};
|
|
module_platform_driver(brcmstb_nand_driver);
|
|
|
|
MODULE_LICENSE("GPL v2");
|
|
MODULE_AUTHOR("Brian Norris");
|
|
MODULE_DESCRIPTION("NAND driver for Broadcom STB chips");
|