Patent ID: 7864521

Claim:
An enclosure for electronic device, comprising: a chassis defining an opening, and comprising a drive bracket mounted therein; the drive bracket comprising a side plate facing the opening and a through hole defined in the side plate; a rotating member pivotally mounted on the side plate, the rotating member comprising a positioning pin inserted in the through hole; a data storage device received in the drive bracket, the data storage device defining a locking hole in alignment with the through hole of the side plate; and a cover mounted on the chassis to cover the opening of the chassis, the cover abuts the rotating member rotating on the side plate so that the positioning pin is inserted in the through hole and the locking hole to secure the data storage device in the drive bracket of the chassis; wherein an elastic member is pivotally mounted on the side plate, the rotating member is placed on the elastic member, the elastic member and the rotating member are capable of rotation; the elastic member is elastically deformed to store an elastic force which can drive the rotating member rotating to remove the positioning pin from the locking hole when the cover is detached from the chassis.