The problem of a particle of mass m in the field of the inverse square potential alpha/r(2) is studied in quantum mechanics with a generalized uncertainty principle, characterized by the existence of a minimal length. Using the coordinate representation, for a specific form of the generalized uncertainty relation, we solve the deformed Schrodinger equation analytically in terms of confluent Heun functions. We explicitly show the regularizing effect of the minimal length on the singularity of the potential. We discuss the problem of bound states in detail and we derive an expression for the energy spectrum in a natural way from the square integrability condition; the results are in complete agreement with the literature. (C) 2017 Elsevier Inc. All rights reserved.