Some of the causes will disappear over time.You may need to stop taking aspirin, ibuprofen, naproxen, or other medicines that may be causing gastritis, but only after you talk with your health care provider.You may use other over-the-counter and prescription drugs that decrease the amount of acid in the stomach, such as:AntacidsH2 antagonists: famotidine (Pepsid), cimetidine (Tagamet), ranitidine