Earn, when you restore the good name of (5)
I believe the answer is:
clear
This clue might be a double definition.
'earn when' is the first definition.
'clear' can be an answer for 'earn' (synonyms). I'm not sure about the 'when' bit.
'restore the good name of' is the second definition.
'clear' can be an answer for 'restore' (thesaurus). I'm unsure of the 'the good name of' bit.
'you' acts as a link.
Can you help me to learn more?
(Other definitions for clear that I've seen before include "Comprehensible" , "Empty - vault" , "Obvious; jump over" , "Plain; unblock" , "Patent" .)