Patent ID: 7342782

Claim:
A locking device for locking a removable module on a body of an electronic device, the removable module having at least one first block and a second block, the locking device comprising: a switch, disposed on the body; a base, connecting with the switch, having at least one protruding portion and a positioning portion, wherein the protruding portion is coupled with the first block to prevent the removable module from separating from the body when the base is located in a locked position, and the removable module can be separated from the body when the base is moved from the locked position to an unlocked position; and an elastic component, disposed between the base and the body, wherein the elastic component provides a recovery force to the base when the base is moved from the locked position, wherein the positioning portion is coupled with the second block to hold the base in the unlocked position when the removable module is installed on the body and the base is moved from the locked position to the unlocked position.