Biocompatible polymers having polymer backbones with at least one secondary amine suitable for diazeniumdiolation are disclosed. Specifically, methods for providing secondary amines-containing polymers using epoxide-opening reactions are provided. More specifically, nitric oxide-releasing medical devices made using these polymers are disclosed.