]> 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>
Mon, 11 Mar 2013 07:33:23 +0000 (09:33 +0200)
commit13b5f8c764e99eddb6ee3c4090b0298b573fe977
treed10f9804701bead83a00c1c037c81f6b80146ea8
parent9f2cbfaaf23883bb7b5439799a0568e2f0da2425
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