0585-gpio_mem-Remove-unnecessary-dev_info-output-1830.patch 753 B

12345678910111213141516171819202122
  1. From cc3ee0379f3b2d605234098568c8b4b7b33254ae Mon Sep 17 00:00:00 2001
  2. From: JamesH65 <JamesH65@users.noreply.github.com>
  3. Date: Mon, 6 Feb 2017 15:24:47 +0000
  4. Subject: [PATCH] gpio_mem: Remove unnecessary dev_info output (#1830)
  5. The open function was spamming syslog every time
  6. called, so have removed call completely.
  7. ---
  8. drivers/char/broadcom/bcm2835-gpiomem.c | 2 --
  9. 1 file changed, 2 deletions(-)
  10. --- a/drivers/char/broadcom/bcm2835-gpiomem.c
  11. +++ b/drivers/char/broadcom/bcm2835-gpiomem.c
  12. @@ -76,8 +76,6 @@ static int bcm2835_gpiomem_open(struct i
  13. int dev = iminor(inode);
  14. int ret = 0;
  15. - dev_info(inst->dev, "gpiomem device opened.");
  16. -
  17. if (dev != DEVICE_MINOR) {
  18. dev_err(inst->dev, "Unknown minor device: %d", dev);
  19. ret = -ENXIO;