VIn-Pin wrong polarity - Repair?!

I accidentally reversed the polarity on a lilypad same atmega on the uno and others not the mega version..

the atnega smoked ! Once it cooled down it worked again.. :slight_smile: