All you need is repentance:
"Go, proclaim this message toward the north:
" 'Return, faithless Israel,' declares the LORD,
'I will frown on you no longer,
for I am merciful,' declares the LORD,
'I will not be angry forever.
Only acknowledge your guilt...
...Return, faithless people;
I will cure you of backsliding."
Jeremiah 3:12-13, 22
I'm always struck by how God doesn't require that we fix our problems, only that we admit them.