My ceiling fan only has 2 wires and a ground. I want the light switched at the wall and the ceiling fan switched with the chain. I made the ground into neutral and used the black to make fan active. I used the white to switch the light. Is there a problem?

