Exhibit 23.1

Consent of Independent Registered Public Accounting Firm

The Board of Directors

Devon Energy Corporation:

We consent to the incorporation by reference in the registration statements (File No. 333-68694, 333-47672, 333-44702, 333-104933, 333-104922, 333-103679, 333-159796, 333-127630 and 333-179181) on Form S-8 and the Registration Statement (File No. 333-178453) on Form S-3 of Devon Energy Corporation of our report dated February 23, 2012, with respect to the consolidated balance sheets of Devon Energy Corporation as of December 31, 2011 and 2010, and the related consolidated comprehensive statements of earnings, cash flows, and stockholders’ equity for each of the years in the three-year period ended December 31, 2011, and the effectiveness of internal control over financial reporting as of December 31, 2011, which report appears in the December 31, 2011 annual report on Form 10-K of Devon Energy Corporation.

KPMG LLP

Oklahoma City, Oklahoma

February 23, 2012