Linear Motor with integrated drive