811-v6.1-0010-nvmem-lan9662-otp-Fix-compatible-string.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. From 1aeb122d214b92474c86fde00a03d6e2d69381b5 Mon Sep 17 00:00:00 2001
  2. From: Horatiu Vultur <[email protected]>
  3. Date: Wed, 28 Sep 2022 21:51:12 +0200
  4. Subject: [PATCH] nvmem: lan9662-otp: Fix compatible string
  5. The device tree bindings for lan9662-otp expects the compatible string
  6. to be one of following compatible strings:
  7. microchip,lan9662-otpc
  8. microchip,lan9668-otpc
  9. The problem is that the lan9662-otp driver contains the
  10. microchip,lan9662-otp compatible string instead of
  11. microchip,lan9662-otpc.
  12. Fix this by updating the compatible string in the driver.
  13. Fixes: 9e8f208ad5229d ("nvmem: lan9662-otp: add support")
  14. Signed-off-by: Horatiu Vultur <[email protected]>
  15. Link: https://lore.kernel.org/r/[email protected]
  16. Signed-off-by: Greg Kroah-Hartman <[email protected]>
  17. ---
  18. drivers/nvmem/lan9662-otpc.c | 2 +-
  19. 1 file changed, 1 insertion(+), 1 deletion(-)
  20. --- a/drivers/nvmem/lan9662-otpc.c
  21. +++ b/drivers/nvmem/lan9662-otpc.c
  22. @@ -203,7 +203,7 @@ static int lan9662_otp_probe(struct plat
  23. }
  24. static const struct of_device_id lan9662_otp_match[] = {
  25. - { .compatible = "microchip,lan9662-otp", },
  26. + { .compatible = "microchip,lan9662-otpc", },
  27. { },
  28. };
  29. MODULE_DEVICE_TABLE(of, lan9662_otp_match);