/* Shutdown of the Kinetis on-chip RTC @dev RTC platform device  */
static int __devexit kinetis_rtc_remove(struct platform_device *pdev)
/* Shutdown of the Kinetis on-chip RTC @dev RTC platform device  */
static int __devexit kinetis_rtc_remove(struct platform_device *pdev)
{
	struct kinetis_rtc *rtc = platform_get_drvdata(pdev);
	free_irq(rtc->irq, rtc);
	rtc_device_unregister(rtc->rtc_dev);
	kinetis_rtc_hw_shutdown(rtc);
	clk_disable(rtc->clk);
	clk_put(rtc->clk);
	iounmap(rtc->regs);
	platform_set_drvdata(pdev, NULL);
	kfree(rtc);
	d_printk(1, "dev=%s\n", dev_name(&pdev->dev));
	return 0;
}