]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtd: mtdchar: handle chips that have user otp but no factory otp
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 4 Mar 2013 16:35:24 +0000 (17:35 +0100)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Tue, 19 Mar 2013 08:15:11 +0000 (10:15 +0200)
commit1df449ff9388216a76f1236684692d857e7202ce
tree656b9d1cc35c879320cfea7e1ce979dbf8eb9091
parent6d9c6cfa3d2ca788c289f092961792457a6c6da5
mtd: mtdchar: handle chips that have user otp but no factory otp

Before this patch mtd_read_fact_prot_reg was used to check availability
for both MTD_OTP_FACTORY and MTD_OTP_USER access. This made accessing
user otp for chips that don't have a factory otp area impossible. So use
the right wrapper depending on the intended area to be accessed.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/mtdchar.c