How to address minor mold problem in paint prep
There are various mold-inhibiting primers such as Kilz and Zinsser (links shown only as examples). 


If there is still visible stain, wash with dilute bleach and let dry.
Apply the mold-inhibiting primer appropriate for your paint type (oil, latex, etc.).
Paint with with your choice of material.