An attachment structure of a camera module for attaching to a housing a
camera module having an image capturing element portion mounted on a
substrate and a lens portion provided on said image capturing element
portion. The attachment structure includes an elastic member which is
elastically deformed in a thickness direction, arranged between said
substrate and said housing, and a latching portion provided on said
housing. The camera module engages with said latching portion, and
movement of said elastic member in the restoring direction is restricted.