you just need to change the light bulb, see SECTION 3 in this link :
http://www.paulstravelpictures.com/Articles/Mazda-CX-9-SUV-Repair-Maintenance-Guides.htm
if you're talking about the license plate light, you just need to change the light bulb also,
no need to replace the whole part, the...