A holder-side connecting portion 10c provided on a brush holder 10 and a connector-side connecting portion 16b provided on a connector portion 16 are electrically and mechanically connected with each other. The holder-side connecting portion 10c and the connector-side connecting portion 16b are clamped between a yoke housing 4 and a gear housing 21. For this reason, the connecting portions 10c and 16b for connecting the brush holder 10 and the connector portion 16 are prevented from being externally exposed. As a result, the insulation of the connecting portions 10c and 16b can be secured without complicating the construction of the connecting portions 10c and 16b by applying a special seal or the like to the connecting portions 10c and 16b.
A detecting device includes a housing, a detecting unit mounted to the housing, and a terminal insert-molded to the housing. One end of the terminal is electrically connected with the detecting unit, and the other end of the terminal has a rising portion and is led out of the housing. The housing has a gate side and a columnar terminal lead-out portion. The gate side is disposed in correspondence with a gate into which a resinous material is injected during injection molding. The terminal lead-out portion covers a base of the rising portion of the terminal. The terminal has a protrusion at the base of the rising portion. The protrusion protrudes up to a surface of the terminal lead-out portion in a direction that is substantially parallel to a direction perpendicular to the gate side.