Fix *_component_getFactory function type

Change-Id: I827fd727eb49ce19da847327d78bca531a11bc1a