galigilabs:
I have tried changing the capital letter but still the same error and I have checked my MFRC522 folder and it has the deprecated file in it
If you're still getting the same error that would indicate you didn't actually change the capital letter since the error contains the capital letter.
If you want help with this you need to provide an exact set of instructions that will allow us to reproduce the problem. This means we need to know exactly where you got the libraries, how you installed them, and which board you're compiling for.