I intended to do photography so that i could make a living doing something i loved. It seemed a great idea at that time.
But while i loved the process of taking the photos (i do mostly landscapes, which basically involves patiently waiting for something magical to happen http://saravk.kettik.com/go/photos), i didn't quite enjoy the process of turning that hobby into an income generating endeavour. So i guess i finally came to the same realization as you did. To keep my passion and profession separate.
I also realised that i didn't lose my love for coding, especially when working on my own projects. So i'am now working on a solution for my original problem. To find a way to help travellers create, share and monetize their content.
What I'm not sure about from your comment is whether you intended to do photography for money or because you loved doing it (or both!)
I made a decision a long time ago that I would never allow myself to be hired to take photographs, for all of the reasons around what we're discussing. I want to keep photography as something I do out of love.
It was a very smart decision to make.