]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: m25p80: assign default read command
authorBrian Norris <computersforpeace@gmail.com>
Thu, 5 Dec 2013 06:59:40 +0000 (22:59 -0800)
committerBrian Norris <computersforpeace@gmail.com>
Mon, 20 Jan 2014 19:49:48 +0000 (11:49 -0800)
commit0e19fd7c92e9c2dc66e475e0a0de8a91b16b1b53
tree5c9e9b650902792f7a9052c20803d0a4d7ec4ba8
parent5a0a82c19b20afac5e9f04a8051697fa07a0aad3
mtd: m25p80: assign default read command

In the following commit (in -next):

    commit dba5eceee6c1c6e0ea6b7cb02f01183c50c3ab2e
    drivers: mtd: m25p80: convert "bool" read check into an enum

We converted the boolean 'fast_read' property to become an enum
'flash_read', but at the same time, we changed the conditional path so
that it doesn't choose a default value in some cases (technically, we
choose the correct default simply by virtue of devm_kzalloc(), which
zeroes this out to be a NORMAL read operation, but still...).

Fix this by setting a default for the 'else' clause.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Sourav Poddar <sourav.poddar@ti.com>
Acked-by: Marek Vasut <marex@denx.de>
drivers/mtd/devices/m25p80.c