brcmstb_nand.c 1.2 KB

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