driver/mtd: Fix wrong return value in mtdconfig_register
driver/mtd: Fix wrong return value in mtdconfig_register

When kmm_malloc() fails, it returns OK instead of -ENOMEM.

Signed-off-by: Lokesh B V <a10c1c2561c872cd1fd5899c4340d5ec87a91507@partner.samsung.com>

lokeshbv/TizenRT,junmin-kim/TizenRT,chanijjani/TizenRT,jeongchanKim/TizenRT,HONGCHAEHEE/TizenRT,pillip8282/TizenRT,btheosam/TizenRT,Samsung/TizenRT,davidfather/TizenRT,Samsung/TizenRT,an4967/TizenRT,junmin-kim/TizenRT,jeongchanKim/TizenRT,junmin-kim/TizenRT,lokeshbv/TizenRT,pillip8282/TizenRT,davidfather/TizenRT,jsdosa/TizenRT,an4967/TizenRT,lokeshbv/TizenRT,jsdosa/TizenRT,jsdosa/TizenRT,pillip8282/TizenRT,jeongchanKim/TizenRT,pillip8282/TizenRT,JeonginKim/TizenRT,Samsung/TizenRT,JeonginKim/TizenRT,an4967/TizenRT,junmin-kim/TizenRT,jsdosa/TizenRT,jeongchanKim/TizenRT,pillip8282/TizenRT,btheosam/TizenRT,jeongchanKim/TizenRT,jeongarmy/TizenRT,JeonginKim/TizenRT,btheosam/TizenRT,lokeshbv/TizenRT,btheosam/TizenRT,lokeshbv/TizenRT,Samsung/TizenRT,jeongarmy/TizenRT,jeongarmy/TizenRT,sunghan-chang/TizenRT,btheosam/TizenRT,sunghan-chang/TizenRT,Samsung/TizenRT,jeongarmy/TizenRT,sunghan-chang/TizenRT,davidfather/TizenRT,junmin-kim/TizenRT,pillip8282/TizenRT,jeongarmy/TizenRT,jsdosa/TizenRT,Samsung/TizenRT,btheosam/TizenRT,jeongarmy/TizenRT,an4967/TizenRT,an4967/TizenRT,JeonginKim/TizenRT,JeonginKim/TizenRT,chanijjani/TizenRT,davidfather/TizenRT,HONGCHAEHEE/TizenRT,davidfather/TizenRT,an4967/TizenRT,lokeshbv/TizenRT,sunghan-chang/TizenRT,chanijjani/TizenRT,JeonginKim/TizenRT,chanijjani/TizenRT,sunghan-chang/TizenRT,HONGCHAEHEE/TizenRT,sunghan-chang/TizenRT,sunghan-chang/TizenRT,pillip8282/TizenRT,davidfather/TizenRT,jeongchanKim/TizenRT,jeongarmy/TizenRT,chanijjani/TizenRT,an4967/TizenRT,HONGCHAEHEE/TizenRT,jsdosa/TizenRT,junmin-kim/TizenRT,HONGCHAEHEE/TizenRT,jeongchanKim/TizenRT,davidfather/TizenRT,Samsung/TizenRT,junmin-kim/TizenRT,chanijjani/TizenRT,jsdosa/TizenRT,chanijjani/TizenRT,HONGCHAEHEE/TizenRT