ipq806x: Skip adding mtdid for invalid mtd device

Modified function to skip adding mtdid list if mtd device is
not found rather than completely returning error.

Change-Id: I515db87802721c1fa1d87b3422eb17eff049e345
Signed-off-by: Nirmala Devi Mal Nadar <nmalna@codeaurora.org>
Signed-off-by: Kirthik Srinivasan <kirthik@codeaurora.org>
Signed-off-by: Nisar Ahamed Khan <nkhan@codeaurora.org>
(cherry picked from commit 4b0ccfab10691c141227d9450b450bc58155a834)
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
1 file changed