A North Texas attorney charged with prostitution for allegedly offering his legal services in exchange for sex has resigned his law license.

The Texas Supreme Court accepted James W. Keene’s resignation in lieu of discipline, which has the same legal impact as disbarment. Keene can’t practice law or hold himself out as a lawyer for five years. Afterward, he’s eligible to reapply for his law license.