Persim and Lum Berries cure confusion when it happens if the Pokemon is holding the berries. Also the ability own tempo prevents confusion all together. Other than that there is nothing I can think of.
There are berry's that heals confusion.
Hope this helps