As reported to the FAA. Reports are unverified, and codes are left as the FAA publishes them.
What was found
AFTER TAKEOFF WHEN THE CREW PUT THE FLAPS UP TO APPROX 220 KTS, THE RED FLAPS EICAS WARNING CAME ON WITH AURAL ALARM. CREW DIVERTED BACK TO DFW (ATB) AND ATC DECLARED AN EMERGENCY. WHILE PERFORMING GVI ON NOSE LANDING GEAR, FOUND RIGHT PROX SENSOR DENTED AND BRACKET BROKEN. REMOVED AND REPLACED PROZIMITY SENSOR BRACKET IAW B767 SRM 51-10-01. A/C RETURNED TO SERVICE.