In a case that a cleaning mode is designated, it is determined whether or
not a lens unit is attached to a camera main body. If it is determined
that the lens unit is not attached to the camera main body, a quick
return mirror is moved upward and a shutter is opened, and a
photoelectric conversion device, or a cover glass or an optical filter of
the photoelectric conversion device is vibrated, thereby foreign
substances attached to the photoelectric conversion device and the like
are removed.