I do not believe it is a violation of the NEC to use a local ground rod at the sub panel. I certainly did because it is safer than counting on a ground reference that is 150 feet away (in my case). The important thing is to keep this ground separate from the neutral, because it is current carrying and the ground is not.