38 lines · c
1// SPDX-License-Identifier: GPL-2.0-only2/*3 * Copyright © 2015 Broadcom Corporation4 */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 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_new = 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");38