Hume wrote in his Enquiry Concerning Human Understanding: "In all determinations of morality, this circumstance of public utility is ever principally in view; and wherever disputes arise, either in philosophy or common life, concerning the bounds of duty, the question cannot, by any means, be decided with greater certainty, than by ascertaining, on any side, the true interests of mankind. If any false opinion, embraced from appearances, has been found to prevail; as soon as farther experience and sounder reasoning have given us juster notions of human affairs, we retract our first sentiment, and adjust anew the boundaries of moral good and evil."
This is clearly a different sort of utility than that of Bentham and Mills. It appears to square with Foot's claim that, “It is surely clear that moral virtues must be connected with human good and harm, and that it is quite impossible to call anything you like good or harm.”
I think that this notion of utility in the Enquiry does not get much attention in today's discussion of Hume's ethical thought.