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)
commit1447149d653934dea868d22d00d7b5f1b86ef70b
tree79e34272da9d54cac03ab505ccc6e8756852dfa8
parent498ad3f4389a1f1d2b0e09fa8f906152b0cfaf67
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