5、函数1staticints3c24xx_i2c_probe(structplatform_device.页脚.*pdev)2{3structs3c24xx_i2c*i2c=&s3c24xx_i2c;4structresource*res;5intret;67/*使能I2C的时钟*/8i2c->dev=&pdev->dev;9i2c->clk=clk_get(&pdev->dev,"i2c");10if(IS_ERR(i2c->clk)){11 dev_err(&pdev->dev,"cannotgetclock");12 re