Managed to fix the problem. Uninstalled omap3camd and purged it. Then reinstalled and after reboot camera started working.