If it's an asphalt driveway, you can buy asphalt patching products. The patch can be pounded into the cracks. This isn't a long term solution - if the driveway is badly cracked, this is simply a sign of regular aging and eventually you will need to repave the driveway.