The locking device has a fastener including a head portion located aside the heat sink, a foot portion located aside a second face of the printed circuit board, and a body portion extending through the holes of the heat sink and the printed circuit board and interconnecting the head portion and the foot portion.