CFI: avoid redundant function call in single word programming mode
authorJens Gehrlein <sew_s@tqs.de>
Tue, 16 Dec 2008 16:25:54 +0000 (17:25 +0100)
committerStefan Roese <sr@denx.de>
Mon, 26 Jan 2009 09:49:59 +0000 (10:49 +0100)
commita7292871a79cc48d98e3a708dd3c3b81580db6ef
treeee61828505b0d7f7d94efb1b041ded89945fc14a
parent8f86a3636ef88427f880610638e80991adc41896
CFI: avoid redundant function call in single word programming mode

The function find_sector() doesn't need to be called twice in
the case of AMD command set.
Tested on TQM5200S-BD with Samsung K8P2815UQB.

Signed-off-by: Jens Gehrlein <sew_s@tqs.de>
Signed-off-by: Stefan Roese <sr@denx.de>
drivers/mtd/cfi_flash.c