Can I switch what rental property I deduct mortgage interest on?

I have 2 rental properties. Prop A was a 2nd home that was owned free and clear. We took a loan on A and bought B. We rent B out and have been deducting the mortgage interest against that property. Now we are renting A out ~ Can I switch and take the mortgage interest deduction against A. The loan is against that house.