PCI bus error on bootup and shutdown [SOLVED]

I'm not sure if this is where to post this but if not then please move to appropriate category. Ok so when my laptop would boot up or shutdown I kept getting this PCI bus error and I think it was making my boot up and shutdown time slow plus it was just annoying so I searched the web and found a solution and just wanted to share it with y'all here just in case anyone else was having this problem. Check out the links below.

If you don't know how to save your edit in terminal after altering a command then here you go: