From: Uwe Kleine-König Date: Mon, 4 Mar 2013 16:35:24 +0000 (+0100) Subject: mtd: mtdchar: handle chips that have user otp but no factory otp X-Git-Tag: v3.10-rc1~36^2~80 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5dc63fa2c2e149dd3e8128e54c9ca251d0558ea0;p=pandora-kernel.git 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 Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- Reading git-diff-tree failed