Patent attributes
A locking device for locking a removable module on an electronic device is provided. The locking device has a switch, a base and an elastic component. When the base is located in a locked position, the base can prevent the removable module from separating from the electronic device. When the base is located in an unlocked position, the removable module and the electronic device can be separated. The elastic component provides a recovery force when the base is moved from the lock position. The base can be held in the unlocked position when the removable module is installed on the electronic device and the base is moved from the locked position to the unlocked position.