However, it is apparent that resin materials other than potting material, which undergo other types of processing, can be used as long as resin material 122 is injected inside heat sink 118 in such a way as to cover sub-board 108, temperature sensor 116, and semiconductor element 104.