Remind Yourself of His Flaws
When you are in love, you will find yourself looking at things differently. That is just one of the many things you will find yourself doing without even realizing it. That is actually one of the many reasons why you fell in love with him in the first place because you forget that he is human too and forgot that he, like everyone, had their fair share of imperfections. However, you subconsciously overlook these things because of your love for him.
To make a change and solve the problem of your obsession for him, the quickest way would be to keep reminding yourself of all those things he did that would irritate you. Try making a list of those little things and keep it somewhere you will always run into it. Whenever you find yourself daydreaming about him, just have a look at that list you made and never forget them.