amend a return

i have a rental i am selling this year. there are some years back when i did not take the depreciation off, for various reasons. now that i am selling the property, do i have to amend those years in order to report the sale