brcmstb_nand.c 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. #include <linux/device.h>
  14. #include <linux/module.h>
  15. #include <linux/mod_devicetable.h>
  16. #include <linux/platform_device.h>
  17. #include "brcmnand.h"
  18. static const struct of_device_id brcmstb_nand_of_match[] = {
  19. { .compatible = "brcm,brcmnand" },
  20. {},
  21. };
  22. MODULE_DEVICE_TABLE(of, brcmstb_nand_of_match);
  23. static int brcmstb_nand_probe(struct platform_device *pdev)
  24. {
  25. return brcmnand_probe(pdev, NULL);
  26. }
  27. static struct platform_driver brcmstb_nand_driver = {
  28. .probe = brcmstb_nand_probe,
  29. .remove = brcmnand_remove,
  30. .driver = {
  31. .name = "brcmstb_nand",
  32. .pm = &brcmnand_pm_ops,
  33. .of_match_table = brcmstb_nand_of_match,
  34. }
  35. };
  36. module_platform_driver(brcmstb_nand_driver);
  37. MODULE_LICENSE("GPL v2");
  38. MODULE_AUTHOR("Brian Norris");
  39. MODULE_DESCRIPTION("NAND driver for Broadcom STB chips");