Commit c98f71d1 authored by Brian Norris's avatar Brian Norris
Browse files

mtd: fsl-quadspi: possible NULL dereference



It is theoretically possible to probe this driver without a matching
device tree, so let's guard against this.

Also, use the of_device_get_match_data() helper to make this a bit
simpler.

Coverity complained about this one.

Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
Acked-by: default avatarHan xu <han.xu@freescale.com>
parent fc5adbeb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment