]> git.baikalelectronics.ru Git - kernel.git/commit
ptp: ocp: Skip I2C flash read when there is no controller.
authorJonathan Lemon <jonathan.lemon@gmail.com>
Wed, 15 Sep 2021 02:16:21 +0000 (19:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Sep 2021 10:10:00 +0000 (11:10 +0100)
commit7176b8c6159d0c07b2a48053f9299feb4dc311cf
tree79e34272da9d54cac03ab505ccc6e8756852dfa8
parentee989c1e69fd3bddce17eee6bc4f0c37259df9a6
ptp: ocp: Skip I2C flash read when there is no controller.

If an I2C controller isn't present, don't try and read the I2C flash.

Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_ocp.c